Documentation ¶
Index ¶
Constants ¶
View Source
const (
Delimiter = "/"
)
View Source
const (
EtcdScheme = "etcd"
)
Variables ¶
This section is empty.
Functions ¶
func PublishClientConf ¶
func PublishExampleConf ¶
PublishExampleConf publish the config examples in the ./etc directory
func PublishServerConf ¶
func RegService ¶
func RegService(conf *Conf)
RegService register the current server service to etcd
Types ¶
type Client ¶
type Client struct {
*grpc.ClientConn
}
type Conf ¶
type Conf struct { Service Service `yaml:"Service"` Etcd EtcdConf `yaml:"Etcd"` RpcServices RpcServices `yaml:"RpcServices"` }
func MustResolveConf ¶
func ResolveConf ¶
type RpcServices ¶
Click to show internal directories.
Click to hide internal directories.