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