consulregister

package
v0.0.0-...-d615174 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consul

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

Consul is a connection to the local consul agent

func New

func New(client *api.Client) *Consul

func (*Consul) Deregister

func (c *Consul) Deregister(id, name string) error

Deregister sends the provided service registration to the local agent

func (*Consul) DisableMaintainance

func (c *Consul) DisableMaintainance(id, name string) error

DisableMaintainance removes the specific service out of maintainace mode

func (*Consul) EnableMaintainance

func (c *Consul) EnableMaintainance(id, name, reason string) error

EnableMaintainance places the specific service in maintainace mode

func (*Consul) Register

func (c *Consul) Register(id, name, ip string, s *v1.Service) error

Register sends the provided service registration to the local agent

Jump to

Keyboard shortcuts

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