Documentation ¶
Index ¶
- Constants
- Variables
- func GetActiveConsumersCount(consumers []kafkainstanceclient.Consumer) (count int)
- func GetPartitionsWithLag(consumers []kafkainstanceclient.Consumer) (partitionsWithLag int)
- func GetUnassignedPartitions(consumers []kafkainstanceclient.Consumer) (unassignedPartitions int)
- type Validator
Constants ¶
View Source
const ( OffsetAbsolute = "absolute" OffsetEarliest = "earliest" OffsetTimestamp = "timestamp" OffsetLatest = "latest" )
valid values for consumer group reset offset operaion
Variables ¶
View Source
var ValidOffsets = []string{OffsetAbsolute, OffsetEarliest, OffsetTimestamp, OffsetLatest}
Functions ¶
func GetActiveConsumersCount ¶
func GetActiveConsumersCount(consumers []kafkainstanceclient.Consumer) (count int)
func GetPartitionsWithLag ¶
func GetPartitionsWithLag(consumers []kafkainstanceclient.Consumer) (partitionsWithLag int)
GetPartitionsWithLag returns the number of partitions having lag for a consumer group
func GetUnassignedPartitions ¶
func GetUnassignedPartitions(consumers []kafkainstanceclient.Consumer) (unassignedPartitions int)
Types ¶
type Validator ¶
func (*Validator) ValidateOffset ¶
ValidateOffset checks if value v is a valid value for --offset
Click to show internal directories.
Click to hide internal directories.