Documentation ¶
Index ¶
Constants ¶
View Source
const ( // change state actions START int = iota STOP // etcd actions CREATE int = iota UPDATE NOOP DIRECTOR_KEY = "cluster/director" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Config *config.Config Log log.FieldLogger DirectorState bool DirectorLock *sync.Mutex MemberID string DalClient dal.IDal // etcd client is/should-be thread safe Hostname string StateChan chan<- bool DistributeChan chan<- bool OverwatchChan chan<- *overwatch.Message DirectorMonitorLooper looper.Looper DirectorHeartbeatLooper looper.Looper MemberHeartbeatLooper looper.Looper base.Component // contains filtered or unexported fields }
type DirectorJSON ¶
Click to show internal directories.
Click to hide internal directories.