2025-01-29 23:20:44 +01:00
|
|
|
package vars
|
|
|
|
|
|
|
|
import "gitea.ligthert.net/golang/sudoku-funpark/outputter"
|
|
|
|
|
|
|
|
type Operator interface {
|
|
|
|
// Start the operator
|
2025-02-03 21:17:49 +01:00
|
|
|
Start()
|
2025-01-29 23:20:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Vars struct {
|
|
|
|
// Instance of the Outputter struct
|
|
|
|
Outputter *outputter.Outputter
|
|
|
|
// Role is either "scheduler" or "agent"
|
|
|
|
Role string
|
|
|
|
// Operator interface
|
|
|
|
Operator Operator
|
|
|
|
// [agent] NumCPUs is the number of CPUs to use
|
|
|
|
NumCPUs int
|
|
|
|
// Address is the address of the instance to listen to/connect to
|
|
|
|
Address string
|
|
|
|
// Port is the port of the instance to listen on/connect to
|
|
|
|
Port int
|
|
|
|
}
|