Initial Commit (Read: Dirty AF)

This commit is contained in:
2025-01-29 23:20:44 +01:00
parent fdb22e42ec
commit 14012dabd7
15 changed files with 310 additions and 1 deletions

23
vars/types.go Normal file
View File

@ -0,0 +1,23 @@
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
}