Documentation ¶
Index ¶
- Constants
- func CallCtrl() interface{}
- func InitMgr(etcdClient *etcd.Client)
- func InitNode(etcdClient *etcd.Client)
- func NewEtcdClientFromYaml() (*etcd.Client, error)
- func NewKey(service string, version string) string
- func SyncNode(service, version string, cfg Config)
- type Config
- type ConfigKV
- type Node
- type Nodes
Constants ¶
View Source
const (
// KEY_PREFIX the prifix of config data key in etcd
KEY_PREFIX = "MICRO-CONF"
)
Variables ¶
This section is empty.
Functions ¶
func NewEtcdClientFromYaml ¶
NewEtcdClientFromYaml uses config/etcd.yaml to create a etcd client.
Types ¶
type Config ¶
type Config interface { UnmarshalJSON([]byte) error MarshalJSON() ([]byte, error) Reload([]byte) error }
Config config interface
Click to show internal directories.
Click to hide internal directories.