registry

package
v0.0.0-...-27db7c2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 5 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, id string, ip string, port int) error

Register a service with registry

Jump to

Keyboard shortcuts

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