Documentation
¶
Index ¶
- func SprintsServer(cfg core.ServerConfig)
- type CmdServer
- type Sprints
- func (s *Sprints) AbortRace(_ context.Context, abortMessage *pb.AbortMessage) (*pb.Empty, error)
- func (s *Sprints) ConfigureVis(_ context.Context, visCfg *pb.VisConfiguration) (*pb.Empty, error)
- func (s *Sprints) GetCurrentTournament(context.Context, *pb.Empty) (*pb.Tournament, error)
- func (s *Sprints) GetResults(resultSpec *pb.ResultSpec, stream pb.Sprints_GetResultsServer) error
- func (s *Sprints) GetTournamentNames(context.Context, *pb.Empty) (*pb.TournamentNames, error)
- func (s *Sprints) LoadTournament(ctx context.Context, tournamentSpec *pb.TournamentSpec) (*pb.Tournament, error)
- func (s *Sprints) NewRace(ctx context.Context, race *pb.Race) (*pb.Empty, error)
- func (s *Sprints) NewTournament(ctx context.Context, tournament *pb.Tournament) (*pb.Tournament, error)
- func (s *Sprints) ShowResults(_ context.Context, resultSpec *pb.ResultSpec) (*pb.Empty, error)
- func (s *Sprints) StartRace(_ context.Context, _ *pb.Empty) (*pb.Player, error)
- type SprintsDb
- type VisMux
- func (v *VisMux) AbortRace(abortMessage *pb.AbortMessage) error
- func (v *VisMux) CloseRacers() error
- func (v *VisMux) ConfigureVis(visCfg *pb.VisConfiguration) error
- func (v *VisMux) FinishRace(results *pb.Results) error
- func (v *VisMux) NewRace(race *pb.Race) error
- func (v *VisMux) NewTournament(tournament *pb.Tournament) error
- func (v *VisMux) SendRaceUpdate(playerNum uint32, distance uint32)
- func (v *VisMux) SetupRacers()
- func (v *VisMux) ShowResults(results *pb.Results)
- func (v *VisMux) StartRace(starter *pb.Starter) error
- type VisMuxInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SprintsServer ¶
func SprintsServer(cfg core.ServerConfig)
Types ¶
type CmdServer ¶
type CmdServer struct { Sprints *Sprints // contains filtered or unexported fields }
func SetupCmdServer ¶
type Sprints ¶
type Sprints struct {
// contains filtered or unexported fields
}
func SetupSprints ¶
func (*Sprints) ConfigureVis ¶
func (*Sprints) GetCurrentTournament ¶
func (*Sprints) GetResults ¶
func (s *Sprints) GetResults(resultSpec *pb.ResultSpec, stream pb.Sprints_GetResultsServer) error
func (*Sprints) GetTournamentNames ¶
func (*Sprints) LoadTournament ¶
func (s *Sprints) LoadTournament(ctx context.Context, tournamentSpec *pb.TournamentSpec) (*pb.Tournament, error)
func (*Sprints) NewTournament ¶
func (s *Sprints) NewTournament(ctx context.Context, tournament *pb.Tournament) (*pb.Tournament, error)
func (*Sprints) ShowResults ¶
type SprintsDb ¶
type SprintsDb struct {
// contains filtered or unexported fields
}
func SetupSprintsDb ¶
func (*SprintsDb) GetLastTournament ¶
func (s *SprintsDb) GetLastTournament() (*pb.Tournament, error)
func (*SprintsDb) GetTournament ¶
func (s *SprintsDb) GetTournament(name string) (*pb.Tournament, error)
func (*SprintsDb) SaveTournament ¶
func (s *SprintsDb) SaveTournament(tournament *pb.Tournament) error
type VisMux ¶
type VisMux struct {
// contains filtered or unexported fields
}
func SetupVisMux ¶
func (*VisMux) CloseRacers ¶
func (*VisMux) ConfigureVis ¶
func (v *VisMux) ConfigureVis(visCfg *pb.VisConfiguration) error
func (*VisMux) NewTournament ¶
func (v *VisMux) NewTournament(tournament *pb.Tournament) error
func (*VisMux) SendRaceUpdate ¶
func (*VisMux) SetupRacers ¶
func (v *VisMux) SetupRacers()
func (*VisMux) ShowResults ¶
type VisMuxInterface ¶
type VisMuxInterface interface { NewTournament(*pb.Tournament) NewRace(*pb.Race) StartRace(*pb.Starter) AbortRace(*pb.AbortMessage) ConfigureVis(*pb.VisConfiguration) SetupRacers() SendRaceUpdate(uint32, uint32) CloseRacers() FinishRace(*pb.Results) ShowResults(*pb.Results) // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.