etcd

package
v0.0.0-...-781a829 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ETCD_TRANSPORT_TIMEOUT = 5 * time.Second

Functions

This section is empty.

Types

type EtcdProxy

type EtcdProxy struct {
	// contains filtered or unexported fields
}

EtcdProxy 管理工具

func NewEtcdProxy

func NewEtcdProxy(ipStr string) *EtcdProxy

NewEtcdProxy Etcd管理代理

func (*EtcdProxy) DownloadAndWatch

func (ep *EtcdProxy) DownloadAndWatch(path string, Callback func(data string, err error))

DownloadAndWatch 下载及观察文件

func (*EtcdProxy) Init

func (ep *EtcdProxy) Init(ipStr string)

Init 链接

func (*EtcdProxy) RegisterServe

func (ep *EtcdProxy) RegisterServe(appName string, serverInfo string) error

Jump to

Keyboard shortcuts

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