Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameServer ¶
type GameServer struct { proto.UnimplementedGameServer // contains filtered or unexported fields }
GameServer is used to stream game information with clients.
func NewGameServer ¶
func NewGameServer(game *backend.Game, password string) *GameServer
NewGameServer constructs a new game server struct.
func (*GameServer) Connect ¶
func (s *GameServer) Connect(ctx context.Context, req *proto.ConnectRequest) (*proto.ConnectResponse, error)
func (*GameServer) Stream ¶
func (s *GameServer) Stream(srv proto.Game_StreamServer) error
Stream is the main loop for dealing with individual players.
Click to show internal directories.
Click to hide internal directories.