Documentation ¶
Index ¶
Constants ¶
View Source
const (
THROTTLE_BUCKET = 10 // 由于发送方是有突发的,需要累积一定时间做采样
)
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 int, flowLogWriter *dbwriter.FlowLogWriter, index int) *ThrottlingQueue
func (*ThrottlingQueue) SendWithThrottling ¶
func (thq *ThrottlingQueue) SendWithThrottling(flow interface{}) bool
func (*ThrottlingQueue) SendWithoutThrottling ¶
func (thq *ThrottlingQueue) SendWithoutThrottling(flow interface{})
Click to show internal directories.
Click to hide internal directories.