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