api

package
v0.0.0-...-4c7982d Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	TaskType  string
	ArrivedAt time.Time
	Duration  time.Duration

	RealObject interface{}
}

Task object wrapper

type TaskSelector

type TaskSelector interface {
	FindBest(ws []*Worker, ts []*Task, workerIndex int) (*Task, error)
}

TaskSelector provides the best task for worker ws[workerIndex]

type Worker

type Worker struct {
	TaskType string
	EndAt    time.Time
}

Worker object wrapper

Jump to

Keyboard shortcuts

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