lag

package
v0.0.0-...-4736ae6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2019 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGroupOffset

func GetGroupOffset(broker *sarama.Broker, topic string, partition int32, group string) (int64, error)

func GetLag

func GetLag(brokers string, topic string, group string) (map[int32]OffsetStatus, error)

func GetTimestamp

func GetTimestamp(broker *sarama.Broker, topic string, partition int32, offset int64) (time.Time, error)

Types

type OffsetStatus

type OffsetStatus struct {
	Leader         int32
	Replicas       int
	InSyncReplicas int
	Current        int64
	Newest         int64
	Oldest         int64
	MsgNumber      int64
	OffsetLag      int64
	OldestTime     time.Duration
	TimeLag        time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL