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
Click to show internal directories.
Click to hide internal directories.