consul

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deregister

func Deregister()

func Init

func Init(address string)

func Register

func Register(config *RegisterConfig)

Types

type RegisterConfig

type RegisterConfig struct {
	Name     string   // 服务显示名称
	Address  string   // IP地址
	Port     int      // 端口
	Tags     []string // 标签
	Interval int      // 健康检查时间间隔(单位秒)
}

Jump to

Keyboard shortcuts

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