manager

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrConfigAddr not xcfg
	ErrConfigAddr = errors.New("no xcfg... ")
	// 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 = `file`
)

Functions

func NewDataSource

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

NewDataSource ..

func Register

func Register(data ...DataSource)

Register registers a dataSource creator function to the registry

Types

type DataSource

type DataSource interface {
	Register() (string, func() xcfg.DataSource)
}

type DataSourceCreatorFunc

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