The feature.Config embeds client-side config (config/client.Config), so it supports:
addresstimeoutretrybreakerlimitertlstokenoptionsExample:
feature:
address: localhost:9000
timeout: 10s
breaker:
max_requests: 2
interval: 15s
timeout: 5s
consecutive_failures: 4
retry:
backoff: 100ms
timeout: 1s
attempts: 3
tls:
cert: file:test/certs/client-cert.pem
key: file:test/certs/client-key.pem
ca: file:test/certs/rootCA.pem
server_name: localhost
[!NOTE]
feature.Configembeds client config;IsEnabledis true only when both the feature config and embedded client config are present. An emptyfeature:block is treated as disabled by feature config helpers.- This repository does not construct a built-in OpenFeature provider from this config.
- Services that need a remote or custom provider should use
feature.Configin their own provider constructor and provide the resultingopenfeature.FeatureProviderin DI;feature.Moduleregisters that supplied provider with the OpenFeature SDK lifecycle.