Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockMessage ¶
type HeartbeatMessage ¶
type HeartbeatMessage struct { NodeID NodeID Addr string Blocks []BlockID Utilization int64 Timestamp time.Time }
HeartbeatMessage is the heartbeat packet send to master, which includes node's metric. TODO add metric
type HeartbeatResponse ¶
type HeartbeatResponse struct { DeadBlocks []BlockID SyncBlocks []*SyncBlock }
HeartbeatResponse send from master to chunk node to do some action to keep consistency of cluster.
type RegistrationMessage ¶
type RegistrationMessage struct {
Addr string
}
RegistrationMessage is the first message send to master which includes chunk node's address information.
type SyncDoneResponse ¶
type SyncDoneResponse struct { }
Click to show internal directories.
Click to hide internal directories.