Documentation ¶
Index ¶
- Constants
- func NewEtcdClient(cfg *libconfd.BackendConfig) (libconfd.BackendClient, error)
- type MetadClient
- func (c *MetadClient) Close() error
- func (c *MetadClient) GetValues(keys []string) (map[string]string, error)
- func (c *MetadClient) Type() string
- func (c *MetadClient) WatchEnabled() bool
- func (c *MetadClient) WatchPrefix(prefix string, keys []string, waitIndex uint64, stopChan chan bool) (uint64, error)
- type MetadConnection
Constants ¶
View Source
const Etcdv3BackendType = "libconfd-backend-etcdv3"
View Source
const MetadBackendType = "libconfd-backend-metad"
Variables ¶
This section is empty.
Functions ¶
func NewEtcdClient ¶
func NewEtcdClient(cfg *libconfd.BackendConfig) (libconfd.BackendClient, error)
Types ¶
type MetadClient ¶
type MetadClient struct {
// contains filtered or unexported fields
}
func NewMetadClient ¶
func NewMetadClient(backendNodes []string) (*MetadClient, error)
func (*MetadClient) Close ¶
func (c *MetadClient) Close() error
func (*MetadClient) GetValues ¶
func (c *MetadClient) GetValues(keys []string) (map[string]string, error)
func (*MetadClient) Type ¶
func (c *MetadClient) Type() string
func (*MetadClient) WatchEnabled ¶
func (c *MetadClient) WatchEnabled() bool
func (*MetadClient) WatchPrefix ¶
type MetadConnection ¶
type MetadConnection struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.