kafkaratequota

package
v0.0.0-...-16dfdc2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetKafkaRateByConfig

func SetKafkaRateByConfig(config *runtimeconfig.RuntimeRateConfig)

Types

type KafkaRate

type KafkaRate struct {
	IsEnableRateQuota         bool
	WriteRequestLimiter       *rate.Limiter
	WriteByteLimiter          *rate.Limiter
	CatchupReadRequestLimiter *rate.Limiter
	CatchupReadByteLimiter    *rate.Limiter
	EndReadRequestLimiter     *rate.Limiter
	EndReadByteRateLimiter    *rate.Limiter
}

func GetKafkaRate

func GetKafkaRate() *KafkaRate

Jump to

Keyboard shortcuts

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