library

package
v0.0.0-...-ca42a2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRegister

func InitRegister(etcd_ip []string, timeoute int) (err error)

初始化

func ServerRegister

func ServerRegister(dir, val string)

服务注册,并且自动续租

Types

type EtcdClient

type EtcdClient struct {
	Client  *clientv3.Client
	Kv      clientv3.KV
	Lease   clientv3.Lease
	LocalIp string
}
var (
	G_conf_etcd_client *EtcdClient
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL