consul

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(config *Consul)

Types

type Consul

type Consul struct {
	api.Config
	HealthCheck *ConsulServiceHealthCheck
}

func Get

func Get() *Consul

type ConsulServiceHealthCheck added in v0.3.45

type ConsulServiceHealthCheck struct {
	Timeout                        string //健康检测超时时间
	Interval                       string // 健康检查间隔
	DeregisterCriticalServiceAfter string // check失败后删除服务,注销时间,相当于过期时间
}

Jump to

Keyboard shortcuts

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