feeder

package
v0.0.0-...-d88ec87 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Throttle

func Throttle(publisherChannel <-chan interface{}, config *ThrottledPublisherConfig) <-chan interface{}

Throttle throttles the channel according to the configuration

Types

type ThrottledPublisherConfig

type ThrottledPublisherConfig struct {
	MaxEmittedTasksCount uint64
	TaskEmissionDuration time.Duration
	BurstEnabled         bool
}

ThrottledPublisherConfig is the throttler configuration

Jump to

Keyboard shortcuts

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