manager

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

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

	DefaultScheme = "file"
)

Functions

func NewDataSource

func NewDataSource(scheme, configAddr string, watch bool) (econf.DataSource, error)

NewDataSource ..

func Register

func Register(scheme string, creator econf.DataSource)

Register registers a dataSource creator function to the registry

Types

type DataSourceCreatorFunc

type DataSourceCreatorFunc func() econf.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