Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
Limiter is a Pipe component that limits the message rate. Note that due to packet batching this rate may be exceeded.
func NewLimiter ¶
NewLimiter creates a limiter with the given rate as the target limit.
type Pipe ¶
type Pipe interface { // Run the pipe for the given source and destination. Run(src <-chan []packet.Packet, dst chan<- []packet.Packet) }
Pipe represents a pipeline components that connects two message slice channels together. Pipes can be used to modify or analyze a message flow.
Click to show internal directories.
Click to hide internal directories.