Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FFlags ¶
This implementation a hack to be replaced later with a proper feature flags backend. We will also need to pass in additional api user info into this API so that the answer can differ depending on who is asking. This is needed to allow admin-only access, or only partial rollouts of features, for example.
func NewFFlags ¶
func NewFFlags(logger *zap.SugaredLogger) *FFlags
func (*FFlags) GetFlag ¶
GetFlag returns whether the feature named by the string parameter flag is enabled (true) or not (false). An error is returned if the flag name is invalid.
func (*FFlags) ListFlags ¶
ListFlags returns a map of all currently defined feature flags and whether those features are enabled (true) or not (false).
func (*FFlags) RegisterEnvFlag ¶
func (*FFlags) RegisterFlag ¶
Click to show internal directories.
Click to hide internal directories.