communicator

package
v0.0.0-...-d7e6233 Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulClient

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

ConsulClient stores information about our communication with consul

func NewConsulClient

func NewConsulClient(consulAddress string) ConsulClient

NewConsulClient will generate a new connection to consul

func (*ConsulClient) GetNodeName

func (consulClient *ConsulClient) GetNodeName() string

GetNodeName will get the node name of the consul agent we have connected to

func (*ConsulClient) MonitorNode

func (consulClient *ConsulClient) MonitorNode(node string, serviceOut chan<- services.NodeServices, cont <-chan bool)

MonitorNode will monitor consul for changes in a node and, on changes, send back a list of service for that node that match our prefix

Jump to

Keyboard shortcuts

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