consul

package
v0.0.0-...-a23f37e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulRegistry

type ConsulRegistry struct {
	// contains filtered or unexported fields
}

ConsulRegistry is consul registry

func NewConsulRegistry

func NewConsulRegistry(options *regOps.RegistryOptions, opts ...Option) *ConsulRegistry

func (*ConsulRegistry) Deregister

Deregister deregister service

func (*ConsulRegistry) Register

Register register service

type Option

type Option func(*ConsulRegistry)

Option is consul registry option.

func WithAgentServiceCheck

func WithAgentServiceCheck(checks ...*api.AgentServiceCheck) Option

func WithDeregisterCriticalServiceAfter

func WithDeregisterCriticalServiceAfter(interval int) Option

WithDeregisterCriticalServiceAfter with deregister-critical-service-after in seconds.

func WithHealthCheck

func WithHealthCheck(enable bool) Option

WithHealthCheck with registry health check option.

func WithHealthCheckInterval

func WithHealthCheckInterval(interval int) Option

WithHealthCheckInterval with healthcheck interval in seconds.

func WithHeartbeat

func WithHeartbeat(enable bool) Option

WithHeartbeat enable or disable heartbeat

Jump to

Keyboard shortcuts

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