registry

package
v0.0.0-...-63f345b Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPAddr

func IPAddr() (net.IP, error)

Types

type Client

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

func New

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

func NewWithConfig

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

func (*Client) DeRegister

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

func (*Client) Register

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

func (*Client) RegisterService

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

RegisterService takes a service definition and adds it to consul It disregards whatever ID was given and uses a uuid internal so as to prevent clashes

Jump to

Keyboard shortcuts

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