registry

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

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

Go to latest
Published: Jan 10, 2019 License: MIT Imports: 2 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
}

func New

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

func NewWithClient

func NewWithClient(client *consul.Client) *Client

func NewWithConfig

func NewWithConfig(conf *consul.Config) (*Client, error)

func (*Client) DeRegister

func (c *Client) DeRegister(svc *consul.AgentServiceRegistration) error

Deregister removes a client from consul's service list

func (*Client) IP

func (c *Client) IP() (net.IP, error)

func (*Client) RegisterService

func (c *Client) RegisterService(svc *consul.AgentServiceRegistration) error

RegisterService takes a service definition and adds it to consul

Jump to

Keyboard shortcuts

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