Directories
¶
| Path | Synopsis |
|---|---|
|
Package clock is the one place that reads the wall clock for the data that semaphore stamps, compares or evaluates against (evaluation dates, event creation dates, cache refresh dates, rate-limit windows, token lifetimes, log timestamps).
|
Package clock is the one place that reads the wall clock for the data that semaphore stamps, compares or evaluates against (evaluation dates, event creation dates, cache refresh dates, rate-limit windows, token lifetimes, log timestamps). |
|
Package dto defines the flag configuration DTOs and converts them to and from internal flags.
|
Package dto defines the flag configuration DTOs and converts them to and from internal flags. |
|
Package evaluation evaluates a flag against an evaluation context and returns the variation result.
|
Package evaluation evaluates a flag against an evaluation context and returns the variation result. |
|
Package ffcontext defines the evaluation context used to evaluate the flags.
|
Package ffcontext defines the evaluation context used to evaluate the flags. |
|
Package flagdef defines the flags, their rules and the queries used to resolve them.
|
Package flagdef defines the flags, their rules and the queries used to resolve them. |
|
Package internalerror defines the errors raised while a flag is resolved internally.
|
Package internalerror defines the errors raised while a flag is resolved internally. |
|
Package legacy holds what the Semaphore rename needs to keep the names of GO Feature Flag working: the canonical Semaphore name is always read first and the legacy name is accepted as an alias.
|
Package legacy holds what the Semaphore rename needs to keep the names of GO Feature Flag working: the canonical Semaphore name is always read first and the legacy name is accepted as an alias. |
|
Package model defines the variation result models returned by an evaluation.
|
Package model defines the variation result models returned by an evaluation. |
|
Package segment holds the model of the named segments that the targeting rules of a flag test an attribute against (targetingKey in segment("beta-users")): the definitions, the seam that answers the membership questions of a request, the failure policies and an in-memory provider.
|
Package segment holds the model of the named segments that the targeting rules of a flag test an attribute against (targetingKey in segment("beta-users")): the definitions, the seam that answers the membership questions of a request, the failure policies and an in-memory provider. |
|
redissegment
Package redissegment is a segment.Provider that answers segment membership lookups from a Redis or Valkey store with go-redis (segment type segment.TypeRedis; the valkey-go provider, type segment.TypeValkey, is a separate package).
|
Package redissegment is a segment.Provider that answers segment membership lookups from a Redis or Valkey store with go-redis (segment type segment.TypeRedis; the valkey-go provider, type segment.TypeValkey, is a separate package). |
|
resolver
Package resolver wraps a segment.Provider with what a network store needs on the evaluation path: an in-process cache, coalescing of identical concurrent lookups and a circuit breaker for each segment.
|
Package resolver wraps a segment.Provider with what a network store needs on the evaluation path: an in-process cache, coalescing of identical concurrent lookups and a circuit breaker for each segment. |
|
segmentadmin
Package segmentadmin is the write side of the dynamic segments: the code that loads members into a Valkey or Redis store, the counterpart of the read side in valkeysegment and redissegment.
|
Package segmentadmin is the write side of the dynamic segments: the code that loads members into a Valkey or Redis store, the counterpart of the read side in valkeysegment and redissegment. |
|
segmentadmin/admintest
Package admintest holds an in-memory segmentadmin.Store with failure injection, for tests of the code that writes segments (the import and the commands of the CLI) that must not need a server.
|
Package admintest holds an in-memory segmentadmin.Store with failure injection, for tests of the code that writes segments (the import and the commands of the CLI) that must not need a server. |
|
segmenttest
Package segmenttest is the conformance suite of segment.Provider: the contract of the seam as executable cases.
|
Package segmenttest is the conformance suite of segment.Provider: the contract of the seam as executable cases. |
|
snapshot
Package snapshot holds the member set of a segment of the snapshot mode: it pulls the members through a segment.SnapshotSource, keeps them in memory behind an atomic pointer and swaps them when the version changes.
|
Package snapshot holds the member set of a segment of the snapshot mode: it pulls the members through a segment.SnapshotSource, keeps them in memory behind an atomic pointer and swaps them when the version changes. |
|
valkeysegment
Package valkeysegment is the segment.Provider of segment type segment.TypeValkey.
|
Package valkeysegment is the segment.Provider of segment type segment.TypeValkey. |
|
testhelpers
|
|
|
clocktest
Package clocktest pins clock.Now for the tests of a package.
|
Package clocktest pins clock.Now for the tests of a package. |
|
leakwait
Package leakwait is the goroutine leak check that the TestMain of a package runs once its tests ended.
|
Package leakwait is the goroutine leak check that the TestMain of a package runs once its tests ended. |
|
testconvert
Package testconvert provides helpers that build pointers to basic values in tests.
|
Package testconvert provides helpers that build pointers to basic values in tests. |
Click to show internal directories.
Click to hide internal directories.