consul

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulProvider

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

func New

func New() (*ConsulProvider, error)

func NewWithConfig

func NewWithConfig(consulConfig *api.Config) (*ConsulProvider, error)

func (*ConsulProvider) DeregisterMember

func (p *ConsulProvider) DeregisterMember() error

func (*ConsulProvider) MonitorMemberStatusChanges

func (p *ConsulProvider) MonitorMemberStatusChanges()

func (*ConsulProvider) RegisterMember

func (p *ConsulProvider) RegisterMember(clusterName string, address string, port int, knownKinds []string,
	statusValue cluster.MemberStatusValue, serializer cluster.MemberStatusValueSerializer) error

func (*ConsulProvider) Shutdown

func (p *ConsulProvider) Shutdown() error

func (*ConsulProvider) UpdateMemberStatusValue

func (p *ConsulProvider) UpdateMemberStatusValue(statusValue cluster.MemberStatusValue) error

func (*ConsulProvider) UpdateTTL

func (p *ConsulProvider) UpdateTTL()

Jump to

Keyboard shortcuts

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