Documentation ¶
Index ¶
- Constants
- type Server
- func (s *Server) CreateGame(ctx context.Context, req *auth.CreateGameRequest) (*auth.CreateGameResponse, error)
- func (s *Server) ExitGame(ctx context.Context, req *auth.ExitGameRequest) (*auth.ExitGameResponse, error)
- func (s *Server) JoinGame(ctx context.Context, req *auth.JoinGameRequest) (*auth.JoinGameResponse, error)
Constants ¶
View Source
const MAX_MAP_RADIUS = 10000
View Source
const MAX_PLAYERS = 100
View Source
const MAX_PL_RAD = 250
View Source
const MAX_SPEED = 50
View Source
const MAX_USERNAME_CHARS = 50
View Source
const PLAYER_COLORS = 5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { RDB *redis.ClusterClient GameLifetime time.Duration DailyUserGameLimit int64 GameJoinTimeoutSec int64 ServerSecret string auth.UnimplementedAuthServiceServer }
func (*Server) CreateGame ¶
func (s *Server) CreateGame(ctx context.Context, req *auth.CreateGameRequest) (*auth.CreateGameResponse, error)
func (*Server) ExitGame ¶
func (s *Server) ExitGame(ctx context.Context, req *auth.ExitGameRequest) (*auth.ExitGameResponse, error)
func (*Server) JoinGame ¶
func (s *Server) JoinGame(ctx context.Context, req *auth.JoinGameRequest) (*auth.JoinGameResponse, error)
Click to show internal directories.
Click to hide internal directories.