consul

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 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 *HealthCheck
}

func Get

func Get() *Consul

type HealthCheck added in v0.8.4

type HealthCheck 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