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 ¶ added in v0.27.0
func GetUnassignedPartitions(consumers []kafkainstanceclient.Consumer) (unassignedPartitions int)
Types ¶
type Validator ¶ added in v0.29.0
func (*Validator) ValidateOffset ¶ added in v0.29.0
ValidateOffset checks if value v is a valid value for --offset
func (*Validator) ValidateOffsetValue ¶ added in v0.29.0
ValidateOffsetValue validates value for timestamp and absolute offset value for absolute offset should be integer and timestamp should be in format "yyyy-MM-dd'T'HH:mm:ssz"
Click to show internal directories.
Click to hide internal directories.