registry

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(loggerConfig *zap.Config) (*zap.Logger, error)

func NewStorageProvider

func NewStorageProvider(logger *zap.Logger, conf *config.Config) (storageprovider.IStorageProvider, error)

func Register

func Register(name string, factory Factory) error

func SetupStorageProviders

func SetupStorageProviders() error

Types

type Factory

type Factory = func(logger *zap.Logger, conf *config.Config) (storageprovider.IStorageProvider, error)

Factory is used to register functions creating new stream storage provider instances.

func GetFactory

func GetFactory(name string) (Factory, error)

Jump to

Keyboard shortcuts

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