manager

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrConfigAddr not config
	ErrConfigAddr = errors.New("no config... ")
	// ErrInvalidDataSource defines an error that the scheme has been registered
	ErrInvalidDataSource = errors.New("invalid data source, please make sure the scheme has been registered")

	//DefaultScheme ..
	DefaultScheme string
)

Functions

func NewDataSource

func NewDataSource(configAddr string) (conf.DataSource, error)

NewDataSource ..

func Register

func Register(scheme string, creator DataSourceCreatorFunc)

Register registers a dataSource creator function to the registry

Types

type DataSourceCreatorFunc

type DataSourceCreatorFunc func() conf.DataSource

DataSourceCreatorFunc represents a dataSource creator function

Jump to

Keyboard shortcuts

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