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
Click to show internal directories.
Click to hide internal directories.