package
0.0.0-20210727112111-33bb21918eae
Repository: https://github.com/force12io/force12.git
Documentation: pkg.go.dev
# Functions
NewQueueLengthTarget creates a new target for queues.
NewRemainderTarget creates a new remainder target.
NewSimpleQueueLengthTarget creates a new target based on simply adding or removing one container if we're above or below target.
# Structs
QueueLengthTarget is where we ant to keep the number of items in a queue under a certain length.
RemainderTarget is what we use as a target when we want to use any remaining capacity for this task.
SimpleQueueLengthTarget aims to keep the number of items in a queue under a certain length This version tends to oscillate too much, so we prefer the version that uses a PD controller (queue.go).
# Interfaces
Target is what we want the Metric to match.