features

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutableRegister

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

func NewRegister

func NewRegister() *MutableRegister

func (*MutableRegister) Get

func (e *MutableRegister) Get(name string) (*feature.Feature, error)

func (*MutableRegister) Names

func (e *MutableRegister) Names() (names []string)

func (*MutableRegister) Register

func (e *MutableRegister) Register(name string, activate feature.ActivateFunc, deactivate feature.DeactivateFunc)

type Register

type Register interface {
	Get(string) (*feature.Feature, error)
	Names() []string
}

func GlobalRegister

func GlobalRegister() Register

Jump to

Keyboard shortcuts

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