Initial Commit (Read: Dirty AF)
This commit is contained in:
23
vars/types.go
Normal file
23
vars/types.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user