modules/

directory
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: MIT

Directories

Path Synopsis
core
clock
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).
dto
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.
evaluation
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.
ffcontext
Package ffcontext defines the evaluation context used to evaluate the flags.
Package ffcontext defines the evaluation context used to evaluate the flags.
flagdef
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.
internalerror
Package internalerror defines the errors raised while a flag is resolved internally.
Package internalerror defines the errors raised while a flag is resolved internally.
legacy
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.
model
Package model defines the variation result models returned by an evaluation.
Package model defines the variation result models returned by an evaluation.
segment
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.
segment/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).
segment/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.
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.
segment/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.
segment/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.
segment/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.
segment/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.
testhelpers/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.
testhelpers/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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL