throttler

package
v1.6.65 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUEUE_BATCH = 1 << 14
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ThrottlingQueue

type ThrottlingQueue struct {
	Throttle int
	// contains filtered or unexported fields
}

func NewThrottlingQueue

func NewThrottlingQueue(throttle, throttleBucket int, flowLogWriter *dbwriter.FlowLogWriter, index int) *ThrottlingQueue

func (*ThrottlingQueue) SampleDisabled

func (thq *ThrottlingQueue) SampleDisabled() bool

func (*ThrottlingQueue) SendWithThrottling

func (thq *ThrottlingQueue) SendWithThrottling(flow interface{}) bool

func (*ThrottlingQueue) SendWithoutThrottling

func (thq *ThrottlingQueue) SendWithoutThrottling(flow interface{})

Jump to

Keyboard shortcuts

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