types.go 539 B

1234567891011121314151617181920212223
  1. package vars
  2. import "gitea.ligthert.net/golang/sudoku-funpark/outputter"
  3. type Operator interface {
  4. // Start the operator
  5. Start()
  6. }
  7. type Vars struct {
  8. // Instance of the Outputter struct
  9. Outputter *outputter.Outputter
  10. // Role is either "scheduler" or "agent"
  11. Role string
  12. // Operator interface
  13. Operator Operator
  14. // [agent] NumCPUs is the number of CPUs to use
  15. NumCPUs int
  16. // Address is the address of the instance to listen to/connect to
  17. Address string
  18. // Port is the port of the instance to listen on/connect to
  19. Port int
  20. }