registry

package
v0.0.0-...-40fc3ee Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 4 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 {
	*consul.Client
}

Client provides an interface for communicating with registry

func NewClient

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

NewClient returns a new Client with connection to consul

func (*Client) Deregister

func (c *Client) Deregister(id string) error

Deregister removes the service address from registry

func (*Client) Register

func (c *Client) Register(name string, port int) (string, error)

Register a service with registry

Jump to

Keyboard shortcuts

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