consul

package
v0.0.0-...-e08e33e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsul

func NewConsul(addr string) (*consul, error)

NewConsul 连接至consul服务返回一个consul对象

Types

type RegisterOption

type RegisterOption struct {
	ServiceID                      string // 服务唯一ID
	ServiceName                    string // 服务名称
	ServiceIP                      string
	ServicePort                    int
	Tags                           []string // 为服务打标签
	HealthCheck                    bool
	HealthCheckTimeout             string
	HealthCheckInterval            string
	HealthCheckGrpcEndPoint        string
	DeregisterCriticalServiceAfter string
}

Jump to

Keyboard shortcuts

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