consul

package
v0.0.0-...-a0d1ad3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name, host, port string, tags []string, o ...Option) (*cfg, error)

func NewDiscovery

func NewDiscovery(address string) *cfg

func NewServicesId

func NewServicesId(id, address string) *cfg

Types

type Option

type Option func(o *opts)

func SetAddress

func SetAddress(addr string) Option

func SetWithCheckInterval

func SetWithCheckInterval(interval string) Option

func SetWithCheckTimeout

func SetWithCheckTimeout(timeout string) Option

func SetWithDCS

func SetWithDCS(dcs string) Option

func SetWithToken

func SetWithToken(token string) Option

type Registry

type Registry interface {
	Register() error
	Deregister(id string) error
}

Jump to

Keyboard shortcuts

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