GO Feature Flag is a simple, complete and lightweight self-hosted feature flag solution 100% Open Source. 🎛️
MIT License
Bot releases are hidden (Show)
Published by thomaspoignant over 3 years ago
JSON
and TOML
now, and you can still use YAML
if it's what you prefer.Published by thomaspoignant over 3 years ago
Published by thomaspoignant over 3 years ago
gocron
dependency and use a time.Ticker
to handle the background updater.Published by thomaspoignant almost 4 years ago
Published by thomaspoignant almost 4 years ago
v0.4.1
to v0.5.0
.The main reason is to have the aws/aws-sdk-go
as a dependency only if you are using the S3Retriever
. With this new syntax, we don't force you to have the SDK if you are not using it.
If you were using HTTPRetriever
, S3Retriever
or GithubRetriever
, the change consists only of changing the key in the config.
// Before v0.5.0
err := ffclient.Init(ffclient.Config{
PollInterval: 3,
HTTPRetriever: &ffClient.HTTPRetriever{
URL: "http://example.com/test.yaml",
},
})
// Since v0.5.0
err := ffclient.Init(ffclient.Config{
PollInterval: 3,
Retriever: &ffclient.HTTPRetriever{
URL: "http://example.com/test.yaml",
},
})
It is a bit different for the flag configuration, I have introduced a FileRetriever
to keep the same format for all retrievers.
// Before v0.5.0
err := ffclient.Init(ffclient.Config{
PollInterval: 3,
LocalFile: "file-example.yaml",
})
// Since v0.5.0
err := ffclient.Init(ffclient.Config{
PollInterval: 3,
Retriever: &ffclient.FileRetriever{
Path: "file-example.yaml",
},
})
Timeout
properties to specify timeout when calling HTTP Client retriever, default is 10 seconds.Context
could be passed in the ffclient.Config{}
during initialization.Published by thomaspoignant almost 4 years ago
Fix typo in the documentation.
Published by thomaspoignant almost 4 years ago
Published by thomaspoignant almost 4 years ago
Published by thomaspoignant almost 4 years ago
#13 - Change the way to affect people in the cohort
Published by thomaspoignant almost 4 years ago
The library support 3 receivers (file, HTTP, and S3).