Package Usage: go: github.com/launchdarkly/go-server-sdk-consul/v3
Package ldconsul provides a Consul-backed persistent data store for the LaunchDarkly Go SDK.
For more details about how and why you can use a persistent data store, see:
https://docs.launchdarkly.com/sdk/features/storing-data/consul#go
To use the Consul data store with the LaunchDarkly client:
The default Consul configuration uses an address of localhost:8500. You may customize the
configuration by using the methods of the ldconsul.DataStoreBuilder returned by
ldconsul.DataStore(). For example:
Note that CacheSeconds() is not a method of ldconsul.DataStoreBuilder, but rather a method of
ldcomponents.PersistentDataStore(), because the caching behavior is provided by the SDK for
all database integrations.
If you are also using Consul for other purposes, the data store can coexist with
other data as long as you are not using the same keys. By default, the keys used by the
data store will always start with "launchdarkly/"; you can change this to another
prefix if desired.
1 version
Latest release: almost 2 years ago
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/launchdarkly/go-server-sdk-consul/v3