Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for the control server
func (*Client) MessageChannel ¶
MessageChannel returns the channel for sending message ranges
type Control ¶
type Control struct {
Type ControlType
Range MessageRange
}
Control represents a new or updated range
type ControlMessage ¶
type ControlMessage struct {
// GeneratorID is the unique identifier of the generator
GeneratorID string `json:"generator_id"`
// Timestamp is when the messages were published
Timestamp time.Time `json:"timestamp"`
// StartID is the first message ID in the range
StartID uint64 `json:"start_id"`
// RangeLen is the length of the ID range
RangeLen uint `json:"range_len"`
}
ControlMessage represents a notification from a generator about messages it has published
type ControlType ¶
type ControlType int
const ( ControlTypeNew ControlType = iota ControlTypeUpdate )
type MessageRange ¶
MessageRange tracks a range of message IDs from a generator
Click to show internal directories.
Click to hide internal directories.