Documentation ¶
Index ¶
- func AcquireLock(client *clientv3.Client, lockKey string, ttl int64) (*clientv3.LeaseGrantResponse, error)
- func CloseEtcdClient()
- func CreateOrUpdateEndpoint(key string, value interface{}) error
- func DeleteEndpoint(key string) error
- func GetEndpoint(key string) (interface{}, error)
- func GetEtcdClient() *clientv3.Client
- func NewEtcdClient(endpoints []string)
- func ReleaseOrderLock(client *clientv3.Client, lockKey string, leaseID clientv3.LeaseID) error
- func WaitForLockRelease(ctx context.Context, client *clientv3.Client, lockKey string, ...)
- func WatchKeyChanges(client *clientv3.Client, key string, configChan chan<- interface{})
- type InitEndpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireLock ¶
func CloseEtcdClient ¶
func CloseEtcdClient()
func CreateOrUpdateEndpoint ¶
func DeleteEndpoint ¶
func GetEndpoint ¶
func GetEtcdClient ¶
func NewEtcdClient ¶
func NewEtcdClient(endpoints []string)
func ReleaseOrderLock ¶
func WaitForLockRelease ¶
func WatchKeyChanges ¶
Types ¶
type InitEndpoint ¶
type InitEndpoint struct {
Init bool `yaml:"init"`
}
Click to show internal directories.
Click to hide internal directories.