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 evalcore provides the hashing, context conversion and JSON helpers of the core module.
|
Package evalcore provides the hashing, context conversion and JSON helpers of the core module. |
|
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. |
|
internal/nikunjycache
Package nikunjycache keeps one parsed evaluator for each nikunjy query of the rules, and the keys that the rules that were validated use to find it.
|
Package nikunjycache keeps one parsed evaluator for each nikunjy query of the rules, and the keys that the rules that were validated use to find it. |
|
internal/queryregistry
Package queryregistry holds the compiled form of the queries of the rules that were validated, for as long as the rule lists that were validated with them live.
|
Package queryregistry holds the compiled form of the queries of the rules that were validated, for as long as the rule lists that were validated with them live. |
|
internal/scheduledmemo
Package scheduledmemo memoizes the flags that a scheduled rollout builds.
|
Package scheduledmemo memoizes the flags that a scheduled rollout builds. |
|
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. |
|
redisproto
Package redisproto is what the segment providers for a store that speaks the Redis protocol share: the layout of a segment in the store (a set of members, or one key per member), the default keys, the options of a segment, the failure classes of a call and the counters that observe it, the plan of the probes of Init, and the limits and error values of the snapshot reads (SSCAN and the version key).
|
Package redisproto is what the segment providers for a store that speaks the Redis protocol share: the layout of a segment in the store (a set of members, or one key per member), the default keys, the options of a segment, the failure classes of a call and the counters that observe it, the plan of the probes of Init, and the limits and error values of the snapshot reads (SSCAN and the version key). |
|
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. |
|
resolver/internal/breaker
Package breaker is the circuit breaker of one segment of the resolver: it counts consecutive failed calls to the store and, once open, refuses calls until a cool-down has passed.
|
Package breaker is the circuit breaker of one segment of the resolver: it counts consecutive failed calls to the store and, once open, refuses calls until a cool-down has passed. |
|
resolver/internal/calldecision
Package calldecision decides how a shared call to the store ended, exactly once, under one lock: either the store returned in time or its deadline fired first.
|
Package calldecision decides how a shared call to the store ended, exactly once, under one lock: either the store returned in time or its deadline fired first. |
|
resolver/internal/lrucache
Package lrucache is the bounded, sharded LRU of the answers of one segment of the resolver, with a time to live for members and one for non members, and a version token that turns the entries of an older version into misses.
|
Package lrucache is the bounded, sharded LRU of the answers of one segment of the resolver, with a time to live for members and one for non members, and a version token that turns the entries of an older version into misses. |
|
resolver/internal/shutdownbound
Package shutdownbound is the bound of the Shutdown of the store behind a resolver: what the first Shutdown call of the resolver fixes, whichever caller ends up running the store's Shutdown.
|
Package shutdownbound is the bound of the Shutdown of the store behind a resolver: what the first Shutdown call of the resolver fixes, whichever caller ends up running the store's Shutdown. |
|
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. |
|
segmenttest/internal/goroutinelabels
Package goroutinelabels counts the goroutines that carry a pprof label in a goroutine profile.
|
Package goroutinelabels counts the goroutines that carry a pprof label in a goroutine profile. |
|
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.