Documentation ¶
Index ¶
- Variables
- func AddEventBackend(eventBackend backends.EventStorageBackend)
- func AddObjectBackend(objBackend backends.ObjectStorageBackend)
- func GetEventBackend(name string) backends.EventStorageBackend
- func GetObjectBackend(name string) backends.ObjectStorageBackend
- func RegisterStorageBackends()
- func RemoveEventBackend(name string)
- func RemoveObjectBackend(name string)
- type Registry
- func (r *Registry) AddEventBackend(eventBackend backends.EventStorageBackend)
- func (r *Registry) AddObjectBackend(objBackend backends.ObjectStorageBackend)
- func (r *Registry) GetEventBackend(name string) backends.EventStorageBackend
- func (r *Registry) GetObjectBackend(name string) backends.ObjectStorageBackend
- func (r *Registry) RemoveEventBackend(name string)
- func (r *Registry) RemoveObjectBackend(name string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NewObjectBackends []func() backends.ObjectStorageBackend NewEventBackends []func() backends.EventStorageBackend )
Functions ¶
func AddEventBackend ¶
func AddEventBackend(eventBackend backends.EventStorageBackend)
func AddObjectBackend ¶
func AddObjectBackend(objBackend backends.ObjectStorageBackend)
func GetEventBackend ¶
func GetEventBackend(name string) backends.EventStorageBackend
func GetObjectBackend ¶
func GetObjectBackend(name string) backends.ObjectStorageBackend
func RegisterStorageBackends ¶
func RegisterStorageBackends()
func RemoveEventBackend ¶
func RemoveEventBackend(name string)
func RemoveObjectBackend ¶
func RemoveObjectBackend(name string)
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewBackendRegistry ¶
func NewBackendRegistry() *Registry
func (*Registry) AddEventBackend ¶
func (r *Registry) AddEventBackend(eventBackend backends.EventStorageBackend)
func (*Registry) AddObjectBackend ¶
func (r *Registry) AddObjectBackend(objBackend backends.ObjectStorageBackend)
func (*Registry) GetEventBackend ¶
func (r *Registry) GetEventBackend(name string) backends.EventStorageBackend
func (*Registry) GetObjectBackend ¶
func (r *Registry) GetObjectBackend(name string) backends.ObjectStorageBackend
func (*Registry) RemoveEventBackend ¶
func (*Registry) RemoveObjectBackend ¶
Click to show internal directories.
Click to hide internal directories.