24 lines
545 B
Go
24 lines
545 B
Go
|
package vars
|
||
|
|
||
|
import "gitea.ligthert.net/golang/sudoku-funpark/outputter"
|
||
|
|
||
|
type Operator interface {
|
||
|
// Start the operator
|
||
|
Start() error
|
||
|
}
|
||
|
|
||
|
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
|
||
|
}
|