consul

package
v0.0.0-...-5537354 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultInterval = "10s"

Variables

This section is empty.

Functions

This section is empty.

Types

type Consul

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

func (*Consul) Deregister

func (r *Consul) Deregister(service *bridge.Service) error

func (*Consul) Ping

func (r *Consul) Ping() error

Ping will try to connect to consul by attempting to retrieve the current leader.

func (*Consul) Refresh

func (r *Consul) Refresh(_ *bridge.Service) error

func (*Consul) Register

func (r *Consul) Register(service *bridge.Service) error

func (*Consul) Services

func (r *Consul) Services() ([]*bridge.Service, error)

type Factory

type Factory struct{}

func (*Factory) New

func (f *Factory) New(uri *url.URL) bridge.RegistryAdapter

Jump to

Keyboard shortcuts

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