toggles

package
v0.0.0-...-bf90f01 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(serviceName, hostURL string)

Init toggle client lib

func IsEnabled

func IsEnabled(ctx context.Context, feature string, fallback bool) bool

IsEnabled wraps unleash for a simpler API

func WithContext

func WithContext(ctx context.Context) unleash.FeatureOption

WithContext creates a Token based contex

Types

type IsToggleEnabled

type IsToggleEnabled func(ctx context.Context, feature string, fallback bool) bool

Jump to

Keyboard shortcuts

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