rdiscover

package
v1.20.8 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// MasterToSlave event role change from master to slave
	MasterToSlave = "m2s"
	// SlaveToMaster event role change from slave to master
	SlaveToMaster = "s2m"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterDiscover

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

AdapterDiscover service discovery and master election for mesos adapter

func NewAdapterDiscover

func NewAdapterDiscover(zkAddr, ip, clusterID string, metricPort uint) (*AdapterDiscover, <-chan RoleEvent, error)

NewAdapterDiscover create Adapter Discover

func (*AdapterDiscover) Start

func (ad *AdapterDiscover) Start()

Start register zk path and monitor all registered adapters

type RoleEvent

type RoleEvent string

RoleEvent event for role change

Jump to

Keyboard shortcuts

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