Teg is a library for manage feature toggles. It aims to allow to create and access to feature toggles in Golang easily and quickly!
Teg reads feature toggles from lock-free in-memory storage and sync to in-memory storage from store.Reader
.
Teg comes with builtin storage backends. You can also use any storage backend with store.Reader
interface.
type Reader interface {
Get(name string) (*FeatureToggle, error)
GetAll() (FeatureToggles, error)
}
- Environment Variable
- Git Repository
- InMemory
Teg comes with builtin update triggers. You can also use any update triggers with TriggerFunc
easily.
type TriggerFunc func(context.Context, chan<- struct{}) error
- Periodic Trigger
- RabbitMQ
If you want to use custom storage and custom update triggers checkout examples folder.
Teg is usable but still under active development. We expect it to be production-ready in the near future.
- If you want to contribute to codes, create pull request
- If you find any bugs or error, create an issue
This project is licensed under the MIT Lıcense