consul

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

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

Go to latest
Published: Nov 20, 2019 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 Client

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

Client wraps a consul client.

func New

func New(addr string) (*Client, error)

New returns a Client interface for given consul address.

func (*Client) Run

func (c *Client) Run(balancer *balancer.Balancer)

Run query services periodically.

func (*Client) Service

func (c *Client) Service(service, tag string) ([]*api.CatalogService, *api.QueryMeta, error)

Service return a service.

Jump to

Keyboard shortcuts

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