api_spot_v1

package
v0.0.0-...-fee577c Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpotServiceServer

type SpotServiceServer struct {

	// Required to have revese compatability
	proto.UnimplementedSpotServiceServer

	// Map with all spots on server
	//
	// key - spot UUID
	// value - spot session data
	// TODO Delete spot when all players leave spot
	SpotsMap *spot.SpotMap
	// contains filtered or unexported fields
}

func New

func New(playersPosUpdatePeriod time.Duration) *SpotServiceServer

func (*SpotServiceServer) CreateSpot

func (*SpotServiceServer) GetPlayersStates

func (*SpotServiceServer) GetSpot

func (*SpotServiceServer) GetSpotPlayers

func (*SpotServiceServer) IsPlayerHunter

func (*SpotServiceServer) JoinToSpot

func (*SpotServiceServer) LeaveSpot

func (*SpotServiceServer) RegisterGrpc

func (s *SpotServiceServer) RegisterGrpc(sr grpc.ServiceRegistrar) error

RegisterGrpc - HealthServiceServer's method to registrate gRPC service server handlers

func (*SpotServiceServer) RegisterGrpcProxy

func (s *SpotServiceServer) RegisterGrpcProxy(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterGrpcProxy - HealthServiceServer's method to registrate gRPC proxy service server handlers

func (*SpotServiceServer) SendPlayerPosition

func (s *SpotServiceServer) SendPlayerPosition(stream proto.SpotService_SendPlayerPositionServer) error

func (*SpotServiceServer) StartSpot

func (*SpotServiceServer) SubGameEvent

func (*SpotServiceServer) SubZoneEvent

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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