Documentation
¶
Index ¶
- Variables
- type SLOQueue
- func (q *SLOQueue) Dequeue(ts time.Time) (*types.RoutingContext, error)
- func (q *SLOQueue) Enqueue(ctx *types.RoutingContext, currentTime time.Time) error
- func (q *SLOQueue) LastError() error
- func (q *SLOQueue) Len() (total int)
- func (q *SLOQueue) Peek(currentTime time.Time, pods types.PodList) (*types.RoutingContext, error)
- func (q *SLOQueue) Route(ctx *types.RoutingContext, pods types.PodList) (string, error)
- type SimpleQueue
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrZeroValueNotSupported = errors.New("zero value not supported")
)
Functions ¶
This section is empty.
Types ¶
type SLOQueue ¶
type SLOQueue struct {
// contains filtered or unexported fields
}
func NewSLOQueue ¶
func NewSLOQueue(provider types.RouterProviderFunc, modelName string) (router *SLOQueue, err error)
type SimpleQueue ¶
type SimpleQueue[V comparable] struct { // contains filtered or unexported fields }
func NewSimpleQueue ¶
func NewSimpleQueue[V comparable](initialCapacity int) *SimpleQueue[V]
func (*SimpleQueue[V]) Cap ¶
func (q *SimpleQueue[V]) Cap() int
func (*SimpleQueue[V]) Len ¶
func (q *SimpleQueue[V]) Len() int
Click to show internal directories.
Click to hide internal directories.