limit

package
v0.0.0-...-df06595 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitOp

type LimitOp struct {
	// contains filtered or unexported fields
}

func New

func New(limit uint64, producerNum int) *LimitOp

func (*LimitOp) AddCtrlConsumer

func (o *LimitOp) AddCtrlConsumer(ctrls ...int32)

func (*LimitOp) AddMessageConsumer

func (o *LimitOp) AddMessageConsumer(consumers ...int32)

func (*LimitOp) Exec

func (o *LimitOp) Exec(msg *pipeline.Message) ([]*pipeline.Message, int, error)

func (*LimitOp) Free

func (o *LimitOp) Free() error

func (*LimitOp) GetExecFunc

func (o *LimitOp) GetExecFunc() func(*pipeline.Message) ([]*pipeline.Message, int, error)

func (*LimitOp) Specialize

func (o *LimitOp) Specialize() error

func (*LimitOp) String

func (o *LimitOp) String() string

Jump to

Keyboard shortcuts

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