consul

package
v7.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 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 ConsulAdapter

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

func (*ConsulAdapter) Deregister

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

func (*ConsulAdapter) Ping

func (r *ConsulAdapter) Ping() error

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

func (*ConsulAdapter) Refresh

func (r *ConsulAdapter) Refresh(service *bridge.Service) error

func (*ConsulAdapter) Register

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

func (*ConsulAdapter) Services

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

func (*ConsulAdapter) SetupHealthCheck

func (r *ConsulAdapter) SetupHealthCheck(service *bridge.Service, healthCheck *bridge.TtlHealthCheck) 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