Directories
¶
| Path | Synopsis |
|---|---|
|
Package archtest holds the architecture checks of the repository: rules about the shape of the code that the compiler and the linters do not enforce, run as Go tests so that the existing CI job finds them.
|
Package archtest holds the architecture checks of the repository: rules about the shape of the code that the compiler and the linters do not enforce, run as Go tests so that the existing CI job finds them. |
|
Package cache caches the loaded flag configurations in memory for the evaluation.
|
Package cache caches the loaded flag configurations in memory for the evaluation. |
|
Package cachestate holds what the cache directory saves and restores: the snapshot of the objects a source read, the hooks the directory plugs into, and its status.
|
Package cachestate holds what the cache directory saves and restores: the snapshot of the objects a source read, the hooks the directory plugs into, and its status. |
|
Package connection builds and shares the AWS clients of the relay: exactly one client per named connection (one bucket or endpoint, one region, one credentials identity) per process.
|
Package connection builds and shares the AWS clients of the relay: exactly one client per named connection (one bucket or endpoint, one region, one credentials identity) per process. |
|
internal/lease
Package lease is the lock of a registry entry that can leave the registry while a caller waits for it.
|
Package lease is the lock of a registry entry that can leave the registry while a caller waits for it. |
|
Package docstest holds the tests that run the examples of the documentation: the bootstrap files and control-plane documents that the pages show are valid, and the getting-started page is run command by command against the built binaries.
|
Package docstest holds the tests that run the examples of the documentation: the bootstrap files and control-plane documents that the pages show are valid, and the getting-started page is run command by command against the built binaries. |
|
Package eventaccel is the optional event accelerator of the polling flag source: an S3 event notification that names the watched object, delivered through an SQS queue, makes the reader poll now instead of at the end of its interval.
|
Package eventaccel is the optional event accelerator of the polling flag source: an S3 event notification that names the watched object, delivered through an SQS queue, makes the reader poll now instead of at the end of its interval. |
|
Package flagstate builds the state of a flag evaluation returned by the all flags and flag evaluation APIs.
|
Package flagstate builds the state of a flag evaluation returned by the all flags and flag evaluation APIs. |
|
Package fleet generates a seeded deployment of many flag sets for the fleet end-to-end test (issue #84): the bootstrap file, the documents to publish (flag sets and flags) and the manifest, a list of evaluation contexts per flag set, and the result that each evaluation must give.
|
Package fleet generates a seeded deployment of many flag sets for the fleet end-to-end test (issue #84): the bootstrap file, the documents to publish (flag sets and flags) and the manifest, a list of evaluation contexts per flag set, and the result that each evaluation must give. |
|
Package folderloader holds the provider independent logic of the "folder mode" of the retrievers (S3, GCS, Azure Blob...): list the files under a prefix, download and parse the ones that changed, and merge all of them into a single flag set.
|
Package folderloader holds the provider independent logic of the "folder mode" of the retrievers (S3, GCS, Azure Blob...): list the files under a prefix, download and parse the ones that changed, and merge all of them into a single flag set. |
|
Package loadtest contains the flag fixtures, the exporter behaviours and the soak harness used to measure the throughput and the memory stability of semaphore.
|
Package loadtest contains the flag fixtures, the exporter behaviours and the soak harness used to measure the throughput and the memory stability of semaphore. |
|
cmd/soak
command
Command soak runs a max-rate load against the library or a real relay proxy (loopback HTTP), with event tracking on and a selectable exporter behaviour, and prints a time series and a "memory stable" verdict.
|
Command soak runs a max-rate load against the library or a real relay proxy (loopback HTTP), with event tracking on and a selectable exporter behaviour, and prints a time series and a "memory stable" verdict. |
|
cmd/soak/soakapp
Package soakapp parses the command line and runs the load-test soak command.
|
Package soakapp parses the command line and runs the load-test soak command. |
|
internal/latency
Package latency is the latency histogram of the soak harness: log scale buckets, four sub-buckets per power of two of a nanosecond, and the quantiles read from the counts.
|
Package latency is the latency histogram of the soak harness: log scale buckets, four sub-buckets per power of two of a nanosecond, and the quantiles read from the counts. |
|
relay
Package relay starts an in-process relay proxy for the benchmarks and the soak harness.
|
Package relay starts an in-process relay proxy for the benchmarks and the soak harness. |
|
segments
Package segments holds the load and chaos tests of the dynamic segments against a real Valkey and a real relay proxy, started from the harness in internal/loadtest/relay.
|
Package segments holds the load and chaos tests of the dynamic segments against a real Valkey and a real relay proxy, started from the harness in internal/loadtest/relay. |
|
Package notification dispatches the flag change notifications to the configured notifiers.
|
Package notification dispatches the flag change notifications to the configured notifiers. |
|
Package retrievermanager is the manager of the flag refresh of the engine: it initialises the retrievers, polls them, merges what they return into the cache and keeps the last good flags when a refresh fails.
|
Package retrievermanager is the manager of the flag refresh of the engine: it initialises the retrievers, polls them, merges what they return into the cache and keeps the last good flags when a refresh fails. |
|
Package schemadoc turns the JSON Schemas of the repository into the Markdown schema reference of the documentation.
|
Package schemadoc turns the JSON Schemas of the repository into the Markdown schema reference of the documentation. |
|
Package statedir keeps the last accepted snapshot and its verified objects in a directory, so a restart serves the last content even when the store is unreachable, and costs one conditional GET (a 304) and no object GET when it is not.
|
Package statedir keeps the last accepted snapshot and its verified objects in a directory, so a restart serves the last content even when the store is unreachable, and costs one conditional GET (a 304) and no object GET when it is not. |
|
Package testproxy is a small TCP forwarder for tests: it sits between a client and a server and can add a delay to every chunk, cut the open connections and refuse new ones.
|
Package testproxy is a small TCP forwarder for tests: it sits between a client and a server and can add a delay to every chunk, cut the open connections and refuse new ones. |
Click to show internal directories.
Click to hide internal directories.