adapters

package
v0.0.0-...-12a582f Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrGuardDoesNotExist is returned if we try to load an adapter
	// that does not exist
	ErrGuardDoesNotExist = errors.New("guard does not exist")
)

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	Check() (bool, error)
}

Adapter implements the guard adapter interface which allows pluggable guards to be used based on experiment plan config

func Load

func Load(name string, config interface{}) (Adapter, error)

Load will load a guard

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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