etcd_discovery

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 6 Imported by: 0

README

etcd-discovery

etcd discovery go mod

install

go get github.com/teamones-open/etcd-discovery

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServerNodeByName

func GetServerNodeByName(Name string, Host string) (nodeInfo etcd_api.NodeInfo, err error)

通过服务名称获取ETCD节点配置

func RegisterServer

func RegisterServer(host string, port string, serverName string) (err error)

Types

type RegisterParam

type RegisterParam struct {
	UUID string `json:"uuid"` // 服务唯一id
	Name string `json:"name"` // 服务名
	Port string `json:"port"` // 服务端口
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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