consul

package
v0.0.0-...-6a58be9 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func New

func New(uri *url.URL, dryRun bool) (*Adapter, error)

func (*Adapter) AdvertiseAddr

func (r *Adapter) AdvertiseAddr() (string, error)

func (*Adapter) Deregister

func (r *Adapter) Deregister(group *types.ServiceGroup) error

func (*Adapter) Ping

func (r *Adapter) Ping() error

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

func (*Adapter) Register

func (r *Adapter) Register(group *types.ServiceGroup) error

func (*Adapter) Services

func (r *Adapter) Services() ([]*types.ServiceGroup, error)

Jump to

Keyboard shortcuts

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