consul

package
v0.0.0-...-2e54b7d Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consul

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

Consul is a provider for a dynamic endpoint configuration

func (*Consul) Connect

func (c *Consul) Connect(addr string) error

Connect to the consul agent

func (*Consul) Endpoints

func (c *Consul) Endpoints(sn string, idx uint64) ([]resolver.Address, uint64, error)

Endpoints for the service. It blocks until it is don't connected or event occurs in the catalog

Jump to

Keyboard shortcuts

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