consul

package
v0.0.0-...-4d778f5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

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

Discovery registers peer in consul catalog and returns other peers.

func New

func New(
	log *logger.Logger,
	self *peers.Peer,
	consulHost string,
	interval time.Duration,
) *Discovery

New returns new consul discovery.

func (*Discovery) Discover

func (d *Discovery) Discover(ctx context.Context) <-chan *peers.Peer

Discover implements Discovery.

Jump to

Keyboard shortcuts

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