Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProduceAPIKey is the API key for produce requests ProduceAPIKey = 0 // FetchAPIKey is the API key for fetch requests FetchAPIKey = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct { RequestAPIKey uint16 RequestVersion uint16 TopicName string types.ConnectionKey }
Key is an identifier for a group of Kafka transactions
type RequestStat ¶
type RequestStat struct {
Count int
}
RequestStat stores stats for Kafka requests to a particular key
func (*RequestStat) CombineWith ¶
func (r *RequestStat) CombineWith(newStats *RequestStat)
CombineWith merges the data in 2 RequestStats objects newStats is kept as it is, while the method receiver gets mutated
Click to show internal directories.
Click to hide internal directories.