Documentation
¶
Index ¶
Constants ¶
View Source
const ( DATA_FILE_NAME = "data" OFFSET_FILE_NAME = "offset" INDEX_FILE_NAME = "index" OFFSET_BUFFER_MAX_SIZE int64 = 4096 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
func (*Broker) AdvanceReadIndex ¶ added in v0.2.1
used by Raft to commit a read across all nodes
func (*Broker) Initialize ¶
type Command ¶ added in v0.2.1
type Command struct {
Type CommandType
Namespace string
Data []byte
}
type CommandType ¶ added in v0.2.1
type CommandType byte
const ( CmdProduce CommandType = 0x01 CmdConsume CommandType = 0x02 )
type LagSnapshot ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.