Documentation ¶
Overview ¶
Package hbtype provides types for hb drivers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Msg ¶
type Msg struct { Kind string `json:"kind"` Compat uint64 `json:"compat"` Gen map[string]uint64 `json:"gen"` UpdatedAt time.Time `json:"updated_at"` Ping node.Monitor `json:"monitor,omitempty"` Events map[string][]event.Event `json:"events,omitempty"` NodeData node.Node `json:"node_data,omitempty"` Nodename string `json:"nodename"` }
Msg struct holds all kinds of hb message
type Receiver ¶
Receiver is the interface that wraps the basic methods for hb driver to receive hb messages
type Transmitter ¶
Transmitter is the interface that wraps the basic methods for hb driver to send hb messages
Click to show internal directories.
Click to hide internal directories.