Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyKey = errors.New("property key is empty") ErrMissConfig = errors.New("miss config") )
Functions ¶
func NewDatasource ¶
func NewDatasource(conf *config.AppConfig, propertyKey string, opts ...Option) (datasource.DataSource, error)
NewDatasource create apollo datasource
Types ¶
type Option ¶
type Option func(o *options)
func WithPropertyHandlers ¶
func WithPropertyHandlers(handlers ...datasource.PropertyHandler) Option
WithPropertyHandlers set property handlers
Click to show internal directories.
Click to hide internal directories.