Top 1.0% dependent packages on proxy.golang.org
Top 0.8% dependent repos on proxy.golang.org
Top 3.6% forks on proxy.golang.org
Top 1.8% docker downloads on proxy.golang.org
proxy.golang.org : github.com/Unleash/unleash-client-go/v3
Package unleash is a client library for connecting to an Unleash feature toggle server. See https://github.com/Unleash/unleash for more information. The API is very simple. The main functions of interest are Initialize and IsEnabled. Calling Initialize will create a default client and if a listener is supplied, it will start the sync loop. Internally the client consists of two components. The first is the repository which runs in a separate Go routine and polls the server to get the latest feature toggles. Once the feature toggles are fetched, they are stored by sending the data to an instance of the Storage interface which is responsible for storing the data both in memory and also persisting it somewhere. The second component is the metrics component which is responsible for tracking how often features were queried and whether or not they were enabled. The metrics components also runs in a separate Go routine and will occasionally upload the latest metrics to the Unleash server. The client struct creates a set of channels that it passes to both of the above components and it uses those for communicating asynchronously. It is important to ensure that these channels get regularly drained to avoid blocking those Go routines. There are two ways this can be done. The first and perhaps simplest way to "drive" the synchronization loop in the client is to provide a type that implements one or more of the listener interfaces. There are 3 interfaces and you can choose which ones you should implement: If you are only interesting in tracking errors and warnings and don't care about any of the other signals, then you only need to implement the ErrorListener and pass this instance to WithListener(). The DebugListener shows an example of implementing all of the listeners in a single type. If you would prefer to have control over draining the channels yourself, then you must not call WithListener(). Instead, you should read all of the channels continuously inside a select. The WithInstance example shows how to do this. Note that all channels must be drained, even if you are not interested in the result. The following examples show how to use the client in different scenarios. ExampleCustomStrategy demonstrates using a custom strategy. ExampleFallbackFunc demonstrates how to specify a fallback function. ExampleSimpleUsage demonstrates the simplest way to use the unleash client. ExampleWithInstance demonstrates how to create the client manually instead of using the default client. It also shows how to run the event loop manually.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/%21unleash/unleash-client-go/v3
Keywords:
feature
, feature-flags
, feature-management
, feature-toggles
, go
, hacktoberfest
, toggles
, unleash
License: Apache-2.0
Latest release: over 1 year ago
First release: over 6 years ago
Namespace: github.com/Unleash/unleash-client-go
Dependent packages: 26
Dependent repositories: 51
Stars: 105 on GitHub
Forks: 48 on GitHub
Docker dependents: 4
Docker downloads: 62
See more repository details: repos.ecosyste.ms
Last synced: 20 days ago
github.com/RedHatInsights/sources-api-go v0.0.0-20231219110743-3cf6b0668ed5
10 versions - Latest release: over 1 year ago - 2 dependent packages - 8 dependent repositories - 7 stars on GitHubgithub.com/RedHatInsights/chrome-service-backend v0.0.0-20231219080346-a30fa8069ca7
Source code repository for chrome backend34 versions - Latest release: over 1 year ago - 3 stars on GitHub
github.com/jabardigitalservice/portal-jabar-services/core-service/src v0.0.0-20231117031924-9c042085e640
Portal Jabar services provides public service information, news, and information for the West Jav...48 versions - Latest release: over 1 year ago - 18 stars on GitHub
github.com/redhatinsights/edge-api v0.0.0-20231102171926-cab94ee6ed75
Package main Edge API An API server for fleet edge management capabilities. FIXME: golangci-lint...35 versions - Latest release: over 1 year ago - 17 stars on GitHub
github.com/PestovOleg/mini-bank/backend/services/mgmt v0.0.0-20231019060831-6716638e8c4e
2 versions - Latest release: over 1 year ago - 2 stars on GitHubgithub.com/PestovOleg/mini-bank/backend/services/user v0.0.0-20231019060831-6716638e8c4e
2 versions - Latest release: over 1 year ago - 2 stars on GitHubgithub.com/RHEnVision/provisioning-backend v0.0.0-20231012154736-c0b85a0f2102
Microservice providing API to provisioning capabilities64 versions - Latest release: over 1 year ago - 7 stars on GitHub
bitbucket.org/Amartha/go-feature-flag-sdk v0.1.0
This sdk is created to : - Remove direct coupling with feature flag technology choice - Simplify ...2 versions - Latest release: over 2 years ago
bitbucket.org/amartha/go-feature-flag-sdk v0.1.0
This sdk is created to : - Remove direct coupling with feature flag technology choice - Simplify ...1 version - Latest release: over 2 years ago
github.com/hugokishi/go_unleash v1.0.3
4 versions - Latest release: over 2 years ago - 3 stars on GitHubgithub.com/batazor/shortlink v0.0.0-20230103150305-36d8597e0993
Shortlink service (Microservice example)120 versions - Latest release: over 2 years ago - 34 stars on
github.com/ycastrillon-lealco/unleash v1.5.0
6 versions - Latest release: over 2 years agogitlab.com/Cacophony/Gateway v0.0.0-20220709223436-bc7309e33cf1
The Gateway for Cacophony, receives and routes events from the Discord Websocket to an AMQP Broker.1 version - Latest release: over 2 years ago - 3 stars on GitLab.com
gitlab.com/Cacophony/Processor v0.0.0-20220710184948-810177735db9
Reads Events from an AMQP Broker and processes them.1 version - Latest release: almost 3 years ago - 2 stars on GitLab.com
gitlab.com/Cacophony/go-kit v0.0.0-20220709222458-a30b172e3cba
2 versions - Latest release: almost 3 years ago - 2 dependent packages - 5 dependent repositories - 2 stars on GitLab.comgitlab.com/pranotobudi/go-feature-flag-demo v0.0.0-20220611061140-9f543f40196a
1 version - Latest release: about 3 years ago - 0 stars on GitLab.comgitlab.com/go-prism/prism-api v0.0.0-20220117075152-b4542b753503
1 version - Latest release: over 3 years ago - 2 dependent repositories - 0 stars on GitLab.comgithub.com/nais/babylon v0.0.0-20211125193839-57e629957166
Sommerstudentprosjekt 2021 - opprydning av kubernetes ressurser1 version - Latest release: over 3 years ago - 7 stars on GitHub
github.com/go-coldbrew/feature-flags v0.1.3
enabling feature-flags in go-coldbrew powered services4 versions - Latest release: over 3 years ago - 1 dependent package - 3 dependent repositories - 0 stars on GitHub
github.com/redhatinsights/clowder-feature-flags v0.0.0-20210115112635-9f0f306023bc
1 version - Latest release: over 4 years ago - 0 stars on GitHubCheck this option to include packages that no longer depend on this package in their latest version but previously did.