Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
Registry is an interface for a component that returns registered binary store implementations.
var DefaultRegistry *Registry = NewRegistry()
DefaultRegistry is the singleton with the registry.
func NewRegistry ¶
func NewRegistry() *Registry
NewRegistry is used to create binary store registry.
func (*Registry) Create ¶
func (s *Registry) Create(name, version, logName string) (binarystore.BinaryStore, error)
func (*Registry) RegisterComponent ¶
func (s *Registry) RegisterComponent(componentFactory func(logger.Logger) binarystore.BinaryStore, names ...string)
RegisterComponent adds a new binary store to the registry.
Click to show internal directories.
Click to hide internal directories.