Documentation
¶
Overview ¶
Package ffx provides a simple feature flag service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrContextMissing = fmt.Errorf("access not found in context")
Functions ¶
func SetAccessOnContext ¶
func SetAccessOnContext(ctx context.Context, access AccessConfig) context.Context
Types ¶
type AccessConfig ¶
func GetAccessFromContext ¶
func GetAccessFromContext(ctx context.Context) (AccessConfig, error)
func (AccessConfig) Merge ¶
func (c AccessConfig) Merge(other AccessConfig) AccessConfig
type Service ¶
func NewContextService ¶
func NewContextService() Service
func NewStaticService ¶
func NewStaticService(config AccessConfig) Service
func NewTestContextService ¶
func NewTestContextService(defaultAccess AccessConfig) Service
Click to show internal directories.
Click to hide internal directories.