sauth

package
v0.0.0-...-ec8f069 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (*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)

Jump to

Keyboard shortcuts

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