ffclient

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Semaphore

A self-hosted feature flag relay proxy and Go engine. Applications evaluate flags over HTTP with the standard OpenFeature SDKs and the OFREP provider (OpenFeature Remote Evaluation Protocol); Go programs can also embed the engine directly.

Semaphore is derived from GO Feature Flag by Thomas Poignant (MIT), https://github.com/thomaspoignant/go-feature-flag. See UPSTREAM.md for the upstream baseline. This is an independent project: it is not affiliated with, sponsored by or endorsed by the GO Feature Flag project or its maintainers, and it is unrelated to other products or services that share the name Semaphore.

Compatibility with GO Feature Flag

The wire protocol is unchanged: the relay proxy serves the same HTTP endpoints (/ofrep/v1/..., /v1/...), so the standard OpenFeature SDKs and the GO Feature Flag OpenFeature providers keep working against it, and the compatibility tests of openfeature/provider_tests run those upstream providers against this relay proxy. The names that GO Feature Flag used (goff-proxy.yaml, the gofeatureflag evaluation context key, the gofeatureflag_cacheable metadata, the X-GOFEATUREFLAG-VERSION header, the gofeatureflag_ metric prefix) are still accepted or emitted next to the Semaphore ones. See the migration table.

How it differs from upstream

  • The rules engine is vendored in-repo (rules/, a directory of the root Go module).
  • No WASM / TinyGo build.
  • No bundled provider SDKs and no website: use the standard OpenFeature SDKs with OFREP, and the Markdown docs in docs/.

Quick start

Build the relay proxy and run it with a file retriever (requires Go, see go.mod):

make build-relayproxy        # binary: out/bin/semaphore

cat > flags.yaml <<'YAML'
new-checkout:
  variations:
    enabled: true
    disabled: false
  targeting:
    - name: beta users
      query: beta eq true
      variation: enabled
  defaultRule:
    variation: disabled
YAML

cat > semaphore-proxy.yaml <<'YAML'
pollingInterval: 1000
retrievers:
  - kind: file
    path: ./flags.yaml
YAML

./out/bin/semaphore --config semaphore-proxy.yaml

Evaluate the flag through OFREP from another terminal:

curl -s http://localhost:1031/ofrep/v1/evaluate/flags/new-checkout -X POST \
  -H 'Content-Type: application/json' \
  --data-raw '{"context": {"targetingKey": "user-123", "beta": true}}'
# {"key":"new-checkout","value":true,"reason":"TARGETING_MATCH","variant":"enabled","metadata":{"evaluatedRuleName":"beta users","gofeatureflag_cacheable":true,"semaphore_cacheable":true}}

Then point an OpenFeature OFREP provider at http://localhost:1031, see docs/openfeature/ofrep.md.

Development

export GOWORK=off
make build             # relay proxy, cli, jsonschema generator
make test-unit         # unit tests
make test-integration  # testcontainers tests (Docker)
make test-e2e          # end-to-end tests (Docker)
make lint

See CONTRIBUTING.md and AGENTS.md.

Documentation

docs/README.md indexes the relay proxy, flag format, rollouts, retrievers, exporters, notifiers and the Go module.

License and attribution

Released under the MIT License, see LICENSE. Semaphore is derived from GO Feature Flag, Copyright (c) 2020 Thomas Poignant (MIT), https://github.com/thomaspoignant/go-feature-flag; the rules/ directory is derived from https://github.com/nikunjy/rules, Copyright (c) 2019 Nikunj Yadav (MIT, see rules/LICENSE). Modifications are Copyright (c) 2026 BlackbirdWorks under the same license. See NOTICE and UPSTREAM.md.

Documentation

Overview

Package ffclient aids adding instrumentation to have feature flags in your app without any backend server.

Summary

This package and its subpackages contain bits of code to have an easy feature flag solution with no complex installation to do on your infrastructure and without using 3rd party vendor for this.

The ffclient package provides the entry point - initialization and the basic method to get your flags value.

Before using the module you need to initialize it this way:

 import (
	  ffclient "github.com/blackbirdworks/semaphore"
	  "github.com/blackbirdworks/semaphore/retriever/httpretriever"
	  ...
 )

 func main() {
	  client, err := ffclient.New(ffclient.Config{
	      PollingInterval: 3 * time.Second,
	      Retriever: &httpretriever.Retriever{
	          URL:  "https://code.gofeatureflag.org/blob/main/testdata/flag-config.yaml",
	      },
	  })
	  defer client.Close()
	  ...

This example will load a file from an HTTP endpoint and will refresh the flags every 3 seconds.

Now you can evaluate your flags anywhere in your code.

		  ...
		  evaluationContext := ffcontext.NewEvaluationContext("user-unique-key")
		  hasFlag, _ := client.BoolVariation("test-flag", evaluationContext, false)
		  if hasFlag {
		      //flag "test-flag" is true for the user
		  } else {
		     // flag "test-flag" is false for the user
		  }
		  ...
  }

Index

Constants

View Source
const DefaultEventQueueSize = 65536

DefaultEventQueueSize is the default value of Config.EventQueueSize.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Context (optional) used to call other services (HTTP, S3 ...)
	// Default: context.Background()
	Context context.Context
	// Retriever is the component in charge to retrieve your flag file
	Retriever retriever.Retriever

	// Deprecated: Use LeveledLogger instead
	// Logger (optional) logger use by the library
	// Default: No log
	Logger *log.Logger
	// LeveledLogger (optional) logger use by the library
	// Default: No log
	LeveledLogger *slog.Logger
	// Name (optional) is the name of the flagset, this is used to identify the flagset inside the
	// Semaphore instance. This allow to identify the flagset.
	// Default: nil
	Name *string
	// EvaluationContextEnrichment (optional) will be merged with the evaluation context sent during the evaluation.
	// It is useful to add common attributes to all the evaluation, such as a server version, environment, ...
	//
	// All those fields will be included in the custom attributes of the evaluation context,
	// if in the evaluation context you have a field with the same name, it will override the common one.
	// Default: nil
	EvaluationContextEnrichment map[string]any
	// PersistentFlagConfigurationFile (optional) if set Semaphore will store flags configuration in this file
	//  to be able to serve the flags even if none of the retrievers is available during starting time.
	//
	// By default, the flag configuration is not persisted and stays on the retriever system. By setting a file here,
	// you ensure that Semaphore will always start with a configuration but which can be out-dated.
	PersistentFlagConfigurationFile string
	// FileFormat (optional) is the format of the file to retrieve (available YAML, TOML and JSON)
	// Default: YAML
	FileFormat string
	// Environment (optional) can be checked in feature flag rules
	// Default: ""
	Environment string
	// Notifiers (optional) is the list of notifiers called when a flag change
	Notifiers []notifier.Notifier
	// DataExporters (optional) are configurations where we store how to output the flags variations results
	// Multiple exporters can be used to send data to multiple destinations in parallel without interference.
	DataExporters []DataExporter
	// Retrievers is the list of components in charge to retrieving your flag files.
	// We are dealing with config files in order, if you have the same flag name in multiple files it will be override
	// based of the order of the retrievers in the slice.
	//
	// Note: If both Retriever and Retrievers are set, we will start by calling the Retriever and,
	// after we will use the order of Retrievers.
	Retrievers []retriever.Retriever
	// DataExporter (optional) is the configuration where we store how we should output the flags variations results
	DataExporter DataExporter
	// PollingInterval (optional) Poll every X time
	// The minimum possible is 1 second
	// Default: 60 seconds
	PollingInterval time.Duration
	// EventQueueSize (optional) is the size of the queue between the flag evaluations and the
	// data exporters. The evaluations never wait for the exporters: when the queue is full
	// (exporters not keeping up) the event is dropped and counted (GoFeatureFlag.DroppedEvents).
	// Default: DefaultEventQueueSize.
	EventQueueSize int
	// ExporterCleanQueueInterval (optional) is the duration between each cleaning of the queue by the thread in charge
	// of removing the old events.
	// Default: 1 minute
	ExporterCleanQueueInterval time.Duration
	// StartWithRetrieverError (optional) If true, the SDK will start even if we did not get any flags from the retriever.
	// It will serve only default values until all the retrievers returns the flags.
	// The init method will not return any error if the flag file is unreachable.
	// Default: false
	StartWithRetrieverError bool
	// Offline (optional) If true, the SDK will not try to retrieve the flag file and will not export any data.
	// No notification will be sent neither.
	// Default: false
	Offline bool
	// DisableNotifierOnInit (optional) set to true if you do not want to call any notifier
	// when the flags are loaded.
	// This is useful if you do not want a Slack/Webhook notification saying that
	// the flags have been added every time you start the application.
	// Default is set to false for backward compatibility.
	// Default: false
	DisableNotifierOnInit bool
	// EnablePollingJitter (optional) set to true if you want to avoid having true periodicity when
	// retrieving your flags. It is useful to avoid having spike on your flag configuration storage
	// in case your application is starting multiple instance at the same time.
	// We ensure a deviation that is maximum + or - 10% of your polling interval.
	// Default: false
	EnablePollingJitter bool
	// contains filtered or unexported fields
}

Config is the configuration of semaphore. You should also have a retriever to specify where to read the flags file.

func (*Config) GetDataExporters

func (c *Config) GetDataExporters() []DataExporter

GetDataExporters returns the list of DataExporter configured.

func (*Config) GetRetrievers

func (c *Config) GetRetrievers() ([]retriever.Retriever, error)

GetRetrievers returns a retriever.Retriever configure with the retriever available in the config.

func (*Config) Initialize

func (c *Config) Initialize()

Initialize assigns defaults to the configuration.

func (*Config) IsOffline

func (c *Config) IsOffline() bool

IsOffline return if the Semaphore is in offline mode.

func (*Config) SetOffline

func (c *Config) SetOffline(control bool)

SetOffline set Semaphore in offline mode.

type DataExporter

type DataExporter struct {
	// Exporter is the configuration of your exporter.
	// You can see all available exporter in the exporter package.
	Exporter exporter.CommonExporter
	// ExporterEventType is the type of event the exporter is expecting.
	// The default type if not set is FeatureEventExporter.
	ExporterEventType ExporterEventType
	// FlushInterval is the interval we are waiting to export the data.
	// example: if you set your FlushInterval to 1 minutes, we will send
	// the data every minute unless we reach the max event in cache before.
	FlushInterval time.Duration
	// MaxEventInMemory is the maximum number of event you keep in the cache
	// before sending the data to the Exporter.
	// We will send the data when the MaxEventInMemory is reach or if we have
	// waited the FlushInterval.
	MaxEventInMemory int64
	// MaxQueuedEvents is the hard limit of events kept in memory while they wait to be exported.
	// When it is reached (the exporter is slow or failing), new events are dropped and counted
	// (see GoFeatureFlag.DroppedEvents) instead of growing the memory without limit.
	// Default: max(4 x MaxEventInMemory, 50000).
	MaxQueuedEvents int64
}

DataExporter is the configuration of your export target.

type ExporterEventType

type ExporterEventType = string
const (
	TrackingEventExporter ExporterEventType = "tracking"
	FeatureEventExporter  ExporterEventType = "feature"
)

type GoFeatureFlag

type GoFeatureFlag struct {
	// contains filtered or unexported fields
}

GoFeatureFlag is the main object of the library it contains the cache, the config, the updater and the exporter.

func New

func New(config Config) (*GoFeatureFlag, error)

New creates a new semaphore instances that retrieve the config from a YAML file and return everything you need to manage your flags.

func (*GoFeatureFlag) AllFlagsState

func (g *GoFeatureFlag) AllFlagsState(evaluationCtx ffcontext.Context) flagstate.AllFlags

AllFlagsState return a flagstate.AllFlags that contains all the flags for a specific user.

func (*GoFeatureFlag) BoolVariation

func (g *GoFeatureFlag) BoolVariation(
	flagKey string,
	ctx ffcontext.Context,
	defaultValue bool,
) (bool, error)

BoolVariation return the value of the flag in boolean. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) BoolVariationDetails

func (g *GoFeatureFlag) BoolVariationDetails(
	flagKey string,
	ctx ffcontext.Context,
	defaultValue bool,
) (model.VariationResult[bool], error)

BoolVariationDetails return the details of the evaluation for boolean flag. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) Close

func (g *GoFeatureFlag) Close()

Close wait until thread are done. The events of the evaluations that finish while Close runs are exported by its final flush; an evaluation that finishes after Close has returned has nowhere to send its event.

func (*GoFeatureFlag) CollectEventData

func (g *GoFeatureFlag) CollectEventData(event exporter.FeatureEvent)

CollectEventData is collecting events and sending them to the data exporter to be stored.

func (*GoFeatureFlag) CollectTrackingEventData

func (g *GoFeatureFlag) CollectTrackingEventData(event exporter.TrackingEvent)

CollectTrackingEventData is collecting tracking events and sending them to the data exporter to be stored.

func (*GoFeatureFlag) DroppedEvents

func (g *GoFeatureFlag) DroppedEvents() int64

DroppedEvents returns the number of events that have been dropped since the start because the exporters were not able to keep up (queue between the evaluations and the exporters full, or exporter queue at its MaxQueuedEvents limit). It is 0 in a healthy setup.

func (*GoFeatureFlag) EvaluationService

func (g *GoFeatureFlag) EvaluationService() *flag.Service

EvaluationService returns the evaluation service of the client: the owner of the caches that evaluating (and validating) its flags uses. Pass it in flag.Context.Service when you evaluate the flags that GetFlagsFromCache returns. It is never nil.

func (*GoFeatureFlag) Float64Variation

func (g *GoFeatureFlag) Float64Variation(
	flagKey string,
	ctx ffcontext.Context,
	defaultValue float64,
) (float64, error)

Float64Variation return the value of the flag in float64. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) Float64VariationDetails

func (g *GoFeatureFlag) Float64VariationDetails(
	flagKey string,
	ctx ffcontext.Context,
	defaultValue float64,
) (model.VariationResult[float64], error)

Float64VariationDetails return the details of the evaluation for float64 flag. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) ForceRefresh

func (g *GoFeatureFlag) ForceRefresh() bool

ForceRefresh is a function that forces to call the retrievers and refresh the configuration of flags. This function can be called explicitly to refresh the flags if you know that a change has been made in the configuration.

func (*GoFeatureFlag) ForceRefreshWithContext

func (g *GoFeatureFlag) ForceRefreshWithContext(ctx context.Context) bool

ForceRefreshWithContext is a function that forces to call the retrievers and refresh the configuration of flags. This function can be called explicitly to refresh the flags if you know that a change has been made in the configuration.

func (*GoFeatureFlag) GetCacheRefreshDate

func (g *GoFeatureFlag) GetCacheRefreshDate() time.Time

GetCacheRefreshDate gives the last refresh date of the cache.

func (*GoFeatureFlag) GetEvaluationContextEnrichment

func (g *GoFeatureFlag) GetEvaluationContextEnrichment() map[string]any

GetEvaluationContextEnrichment returns the evaluation context enrichment.

func (*GoFeatureFlag) GetFlagStates

func (g *GoFeatureFlag) GetFlagStates(
	evaluationCtx ffcontext.Context,
	flagsToEvaluate []string,
) flagstate.AllFlags

GetFlagStates is evaluating all the flags in flagsToEvaluate based on the context provided. If flagsToEvaluate is nil or empty, it will evaluate all the flags available in Semaphore.

func (*GoFeatureFlag) GetFlagsFromCache

func (g *GoFeatureFlag) GetFlagsFromCache() (map[string]flag.Flag, error)

GetFlagsFromCache returns all the flags present in the cache with their current state when calling this method. If cache hasn't been initialized, an error reporting this is returned.

func (*GoFeatureFlag) GetFlagsFromCacheReadOnly

func (g *GoFeatureFlag) GetFlagsFromCacheReadOnly() (map[string]flag.Flag, error)

GetFlagsFromCacheReadOnly is GetFlagsFromCache without the deep copy of the flags: the flags are the ones the evaluations use. The caller must only read them (evaluate them, look at them) and must not change them, nor hand them to code that does. It is the cheap way to evaluate every flag again and again, a copy rebuilds the state that is memoized for the scheduled rollouts.

func (*GoFeatureFlag) GetFlagsFromCacheWithContext

func (g *GoFeatureFlag) GetFlagsFromCacheWithContext(ctx context.Context) (map[string]flag.Flag, error)

GetFlagsFromCacheWithContext returns all the flags present in the cache with their current state when calling this method. If cache hasn't been initialized, an error reporting this is returned. The provided context is used for the operation.

func (*GoFeatureFlag) GetPollingInterval

func (g *GoFeatureFlag) GetPollingInterval() int64

GetPollingInterval is the polling interval between two refreshes of the cache.

func (*GoFeatureFlag) IntVariation

func (g *GoFeatureFlag) IntVariation(
	flagKey string,
	ctx ffcontext.Context,
	defaultValue int,
) (int, error)

IntVariation return the value of the flag in int. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) IntVariationDetails

func (g *GoFeatureFlag) IntVariationDetails(flagKey string, ctx ffcontext.Context, defaultValue int,
) (model.VariationResult[int], error)

IntVariationDetails return the details of the evaluation for int flag. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) IsOffline

func (g *GoFeatureFlag) IsOffline() bool

IsOffline allows knowing if the feature flag is in offline mode.

func (*GoFeatureFlag) JSONArrayVariation

func (g *GoFeatureFlag) JSONArrayVariation(
	flagKey string, ctx ffcontext.Context, defaultValue []any,
) ([]any, error)

JSONArrayVariation return the value of the flag in []interface{}. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) JSONArrayVariationDetails

func (g *GoFeatureFlag) JSONArrayVariationDetails(
	flagKey string,
	ctx ffcontext.Context,
	defaultValue []any,
) (model.VariationResult[[]any], error)

JSONArrayVariationDetails return the details of the evaluation for []interface{} flag. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) JSONVariation

func (g *GoFeatureFlag) JSONVariation(
	flagKey string, ctx ffcontext.Context, defaultValue map[string]any,
) (map[string]any, error)

JSONVariation return the value of the flag in map[string]interface{}. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) JSONVariationDetails

func (g *GoFeatureFlag) JSONVariationDetails(
	flagKey string,
	ctx ffcontext.Context,
	defaultValue map[string]any,
) (model.VariationResult[map[string]any], error)

JSONVariationDetails return the details of the evaluation for []interface{} flag. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) RawVariation

func (g *GoFeatureFlag) RawVariation(
	flagKey string,
	ctx ffcontext.Context,
	sdkDefaultValue any,
) (model.RawVarResult, error)

RawVariation return the raw value of the flag (without any types). This raw result is mostly used by software built on top of semaphore such as semaphore relay proxy. If you are using directly the library you should avoid calling this function. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) SetOffline

func (g *GoFeatureFlag) SetOffline(control bool)

SetOffline updates the config Offline parameter.

func (*GoFeatureFlag) SetOfflineWithContext

func (g *GoFeatureFlag) SetOfflineWithContext(ctx context.Context, control bool)

SetOfflineWithContext updates the config Offline parameter, and stops (going offline) or restarts (going back online) the background polling of the retrievers.

Known limitation: going back online does not restart the background polling. StopPolling closes the background updater channel for good, so the StartPolling call below returns immediately. Fixing this requires recreating the background updater, which is tracked separately.

func (*GoFeatureFlag) StringVariation

func (g *GoFeatureFlag) StringVariation(
	flagKey string,
	ctx ffcontext.Context,
	defaultValue string,
) (string, error)

StringVariation return the value of the flag in string. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) StringVariationDetails

func (g *GoFeatureFlag) StringVariationDetails(
	flagKey string,
	ctx ffcontext.Context,
	defaultValue string,
) (model.VariationResult[string], error)

StringVariationDetails return the details of the evaluation for string flag. An error is return if you don't have init the library before calling the function. If the key does not exist we return the default value. Note: Use this function only if you are using multiple semaphore instances.

func (*GoFeatureFlag) Track

func (g *GoFeatureFlag) Track(
	trackingEventName string,
	ctx ffcontext.EvaluationContext,
	trackingEventDetails exporter.TrackingEventDetails,
)

Track is used to track an event. Note: Use this function only if you are using multiple semaphore instances.

Directories

Path Synopsis
cmd
cli command
relayproxy command
relayproxy/docs
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
cmdhelpers
buildinfo
Package buildinfo formats the identity of a Semaphore binary for the --version flags.
Package buildinfo formats the identity of a Semaphore binary for the --version flags.
err
log
Package exporter defines the data exporter of semaphore
Package exporter defines the data exporter of semaphore
folderloader
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.
koanfhttpprovider
Package httpprovider implements a koanf provider that loads config over HTTP(S), watches it by polling, and keeps a local copy of the last valid config so a service can still start when the network is down.
Package httpprovider implements a koanf provider that loads config over HTTP(S), watches it by polling, and keeps a local copy of the last valid config so a service can still start when the network is down.
loadtest
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.
loadtest/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.
loadtest/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.
model
dto
modules
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).
core/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.
core/testutils/clocktest
Package clocktest pins clock.Now for the tests of a package.
Package clocktest pins clock.Now for the tests of a package.
cmd command
Command cmd evaluates the rule in rules.txt against the JSON object in test.json.
Command cmd evaluates the rule in rules.txt against the JSON object in test.json.
Package testutils is a generated GoMock package.
Package testutils is a generated GoMock package.
gopherstack
Package gopherstack starts the gopherstack AWS emulator (https://github.com/blackbirdworks/gopherstack) in a Docker container, to run end-to-end tests of the AWS-backed components (S3, Kinesis, SQS).
Package gopherstack starts the gopherstack AWS emulator (https://github.com/blackbirdworks/gopherstack) in a Docker container, to run end-to-end tests of the AWS-backed components (S3, Kinesis, SQS).
mock/mockretriever
Package mockretriever provides mock implementations of various retriever interfaces for testing purposes in the semaphore project.
Package mockretriever provides mock implementations of various retriever interfaces for testing purposes in the semaphore project.

Jump to

Keyboard shortcuts

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