Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Example_ClientWithMultiDatasource ¶
func Example_ClientWithMultiDatasource()
New multi datasource based on etcv3 client
func Example_ClientWithOneDatasource ¶
func Example_ClientWithOneDatasource()
New one datasource based on etcv3 client
Types ¶
type Etcdv3DataSource ¶
type Etcdv3DataSource struct { datasource.Base // contains filtered or unexported fields }
func NewDatasource ¶
func NewDatasource(client *clientv3.Client, key string, handlers ...datasource.PropertyHandler) (*Etcdv3DataSource, error)
NewDatasource new a Etcdv3DataSource instance. client is the etcdv3 client, it must be useful and should be release by User.
func (*Etcdv3DataSource) Close ¶
func (s *Etcdv3DataSource) Close() error
func (*Etcdv3DataSource) Initialize ¶
func (s *Etcdv3DataSource) Initialize() error
func (*Etcdv3DataSource) ReadSource ¶
func (s *Etcdv3DataSource) ReadSource() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.