Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStateStore ¶
func RegisterStateStore(name string, factoryMethod func() state.StateStore)
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.StateStore, 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
Click to show internal directories.
Click to hide internal directories.