routes

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartAll

func StartAll(grpcAddr, webAddr string, e *services.SimulationEngine, tickRate time.Duration)

Types

type SimulationServer

type SimulationServer struct {
	pb.UnimplementedBotServiceServer
	pb.UnimplementedSimulationServiceServer
	pb.UnimplementedMatchServiceServer

	TickRate time.Duration
	// contains filtered or unexported fields
}

func NewSimulationServer

func NewSimulationServer(e *services.SimulationEngine, tickRate time.Duration) *SimulationServer

func (*SimulationServer) BroadcastState

func (s *SimulationServer) BroadcastState(st *pb.WorldState)

func (*SimulationServer) Connect

func (*SimulationServer) GetMatchHighlights

func (s *SimulationServer) GetMatchHighlights(ctx context.Context, req *pb.ReplayRequest) (*pb.HighlightsData, error)

func (*SimulationServer) GetMatchReplay

func (s *SimulationServer) GetMatchReplay(ctx context.Context, req *pb.ReplayRequest) (*pb.ReplayData, error)

func (*SimulationServer) HandleDashboardWS

func (s *SimulationServer) HandleDashboardWS(w http.ResponseWriter, r *http.Request)

func (*SimulationServer) ListActiveMatches

func (s *SimulationServer) ListActiveMatches(ctx context.Context, req *pb.Empty) (*pb.MatchList, error)

func (*SimulationServer) ListMatches

func (s *SimulationServer) ListMatches(ctx context.Context, req *pb.Empty) (*pb.MatchList, error)

func (*SimulationServer) StartSimulation

func (s *SimulationServer) StartSimulation(ctx context.Context, cfg *pb.ArenaConfig) (*pb.SimulationResponse, error)

func (*SimulationServer) StopSimulation

func (*SimulationServer) WatchMatch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL