Documentation ¶
Overview ¶
====================================================
# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : config.go # Created : 2019-05-07 19:33 # Last Modified : 2019-05-07 19:33 # Describe : # # ====================================================
====================================================
# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : zookeeper.go # Created : 2019-05-07 19:28 # Last Modified : 2019-05-07 19:28 # Describe : # # ====================================================
Index ¶
- Constants
- type Config
- type Election
- func (s *Election) Close() error
- func (s *Election) Delete(ctx context.Context, key string) error
- func (s *Election) HeartBeat() error
- func (s *Election) SetNx(ctx context.Context, key string, value []byte, opt *election.WriteOptions) error
- func (s *Election) Watch(ctx context.Context, key string, stopCh <-chan struct{}) (<-chan *election.WatchRes, error)
Constants ¶
View Source
const (
// SOH control character
SOH = "\x01"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is the config use to connection zk
type Election ¶
type Election struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.