state

package
v0.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Load state stores

func RegisterStateStore

func RegisterStateStore(name string, factoryMethod func() state.Store)

RegisterStateStore registers a new factory method that creates an instance of a StateStore. The key is the name of the state store, eg. redis

Types

type Registry

type Registry interface {
	CreateStateStore(name string) (state.Store, error)
}

Registry is an interface for a component that returns registered state store implementations

func NewStateStoreRegistry

func NewStateStoreRegistry() Registry

NewStateStoreRegistry is used to create state store registry

Jump to

Keyboard shortcuts

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