Coder Social home page Coder Social logo

trendyol / teg Goto Github PK

View Code? Open in Web Editor NEW
22.0 23.0 1.0 17 KB

Teg is a library for managing feature toggles. It aims to allow to create and access to feature toggles in Golang easily and quickly!

License: MIT License

Go 100.00%
feature-toggle golang

teg's Introduction

Teg

Teg is a library for manage feature toggles. It aims to allow to create and access to feature toggles in Golang easily and quickly!

Architecture

Teg reads feature toggles from lock-free in-memory storage and sync to in-memory storage from store.Reader.

Storage Backends

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)
}

Builtin Storage Backends

  • Environment Variable
  • Git Repository
  • InMemory

Update Triggers

Teg comes with builtin update triggers. You can also use any update triggers with TriggerFunc easily.

type TriggerFunc func(context.Context, chan<- struct{}) error

Builtin Update Triggers

  • Periodic Trigger
  • RabbitMQ

Example

If you want to use custom storage and custom update triggers checkout examples folder.

Status

Teg is usable but still under active development. We expect it to be production-ready in the near future.

Contributing

  • If you want to contribute to codes, create pull request
  • If you find any bugs or error, create an issue

License

This project is licensed under the MIT Lıcense

teg's People

Contributors

vural avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.