user

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: 15 Imported by: 0

Documentation

Overview

Package user is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	StopGameEvent_GameWinner_name = map[int32]string{
		0: "GAME_WINNER_UNSPECIFIED",
		1: "GAME_WINNER_HUNTER",
		2: "GAME_WINNER_VICTIMS",
		3: "GAME_WINNER_DRAW",
	}
	StopGameEvent_GameWinner_value = map[string]int32{
		"GAME_WINNER_UNSPECIFIED": 0,
		"GAME_WINNER_HUNTER":      1,
		"GAME_WINNER_VICTIMS":     2,
		"GAME_WINNER_DRAW":        3,
	}
)

Enum value maps for StopGameEvent_GameWinner.

View Source
var File_spot_v1_spot_v1_proto protoreflect.FileDescriptor
View Source
var SpotService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spot.v1.SpotService",
	HandlerType: (*SpotServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateSpot",
			Handler:    _SpotService_CreateSpot_Handler,
		},
		{
			MethodName: "GetSpot",
			Handler:    _SpotService_GetSpot_Handler,
		},
		{
			MethodName: "JoinToSpot",
			Handler:    _SpotService_JoinToSpot_Handler,
		},
		{
			MethodName: "LeaveSpot",
			Handler:    _SpotService_LeaveSpot_Handler,
		},
		{
			MethodName: "StartSpot",
			Handler:    _SpotService_StartSpot_Handler,
		},
		{
			MethodName: "IsPlayerHunter",
			Handler:    _SpotService_IsPlayerHunter_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetSpotPlayers",
			Handler:       _SpotService_GetSpotPlayers_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubGameEvent",
			Handler:       _SpotService_SubGameEvent_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SendPlayerPosition",
			Handler:       _SpotService_SendPlayerPosition_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "GetPlayersStates",
			Handler:       _SpotService_GetPlayersStates_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubZoneEvent",
			Handler:       _SpotService_SubZoneEvent_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "spot/v1/spot_v1.proto",
}

SpotService_ServiceDesc is the grpc.ServiceDesc for SpotService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSpotServiceHandler

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

RegisterSpotServiceHandler registers the http handlers for service SpotService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSpotServiceHandlerClient

func RegisterSpotServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SpotServiceClient) error

RegisterSpotServiceHandlerClient registers the http handlers for service SpotService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SpotServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SpotServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SpotServiceClient" to call the correct interceptors.

func RegisterSpotServiceHandlerFromEndpoint

func RegisterSpotServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSpotServiceHandlerFromEndpoint is same as RegisterSpotServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSpotServiceHandlerServer

func RegisterSpotServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SpotServiceServer) error

RegisterSpotServiceHandlerServer registers the http handlers for service SpotService to "mux". UnaryRPC :call SpotServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSpotServiceHandlerFromEndpoint instead.

func RegisterSpotServiceServer

func RegisterSpotServiceServer(s grpc.ServiceRegistrar, srv SpotServiceServer)

Types

type CreateSpotRequest

type CreateSpotRequest struct {
	Position                 *Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	RadiusInM                float32   `protobuf:"fixed32,2,opt,name=radius_in_m,json=radiusInM,proto3" json:"radius_in_m,omitempty"`
	ScanPeriodInSeconds      int32     `protobuf:"varint,3,opt,name=scan_period_in_seconds,json=scanPeriodInSeconds,proto3" json:"scan_period_in_seconds,omitempty"`
	ZonePeriodInSeconds      int32     `protobuf:"varint,4,opt,name=zone_period_in_seconds,json=zonePeriodInSeconds,proto3" json:"zone_period_in_seconds,omitempty"`
	SessionDurationInSeconds int32     `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateSpotRequest) Descriptor deprecated

func (*CreateSpotRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateSpotRequest.ProtoReflect.Descriptor instead.

func (*CreateSpotRequest) GetPosition

func (x *CreateSpotRequest) GetPosition() *Position

func (*CreateSpotRequest) GetRadiusInM

func (x *CreateSpotRequest) GetRadiusInM() float32

func (*CreateSpotRequest) GetScanPeriodInSeconds

func (x *CreateSpotRequest) GetScanPeriodInSeconds() int32

func (*CreateSpotRequest) GetSessionDurationInSeconds

func (x *CreateSpotRequest) GetSessionDurationInSeconds() int32

func (*CreateSpotRequest) GetZonePeriodInSeconds

func (x *CreateSpotRequest) GetZonePeriodInSeconds() int32

func (*CreateSpotRequest) ProtoMessage

func (*CreateSpotRequest) ProtoMessage()

func (*CreateSpotRequest) ProtoReflect

func (x *CreateSpotRequest) ProtoReflect() protoreflect.Message

func (*CreateSpotRequest) Reset

func (x *CreateSpotRequest) Reset()

func (*CreateSpotRequest) String

func (x *CreateSpotRequest) String() string

type CreateSpotResponse

type CreateSpotResponse struct {
	SpotUuid string `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSpotResponse) Descriptor deprecated

func (*CreateSpotResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateSpotResponse.ProtoReflect.Descriptor instead.

func (*CreateSpotResponse) GetSpotUuid

func (x *CreateSpotResponse) GetSpotUuid() string

func (*CreateSpotResponse) ProtoMessage

func (*CreateSpotResponse) ProtoMessage()

func (*CreateSpotResponse) ProtoReflect

func (x *CreateSpotResponse) ProtoReflect() protoreflect.Message

func (*CreateSpotResponse) Reset

func (x *CreateSpotResponse) Reset()

func (*CreateSpotResponse) String

func (x *CreateSpotResponse) String() string

type GetPlayersStatesRequest

type GetPlayersStatesRequest struct {
	SpotUuid   string `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	PlayerUuid string `protobuf:"bytes,2,opt,name=player_uuid,json=playerUuid,proto3" json:"player_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPlayersStatesRequest) Descriptor deprecated

func (*GetPlayersStatesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPlayersStatesRequest.ProtoReflect.Descriptor instead.

func (*GetPlayersStatesRequest) GetPlayerUuid

func (x *GetPlayersStatesRequest) GetPlayerUuid() string

func (*GetPlayersStatesRequest) GetSpotUuid

func (x *GetPlayersStatesRequest) GetSpotUuid() string

func (*GetPlayersStatesRequest) ProtoMessage

func (*GetPlayersStatesRequest) ProtoMessage()

func (*GetPlayersStatesRequest) ProtoReflect

func (x *GetPlayersStatesRequest) ProtoReflect() protoreflect.Message

func (*GetPlayersStatesRequest) Reset

func (x *GetPlayersStatesRequest) Reset()

func (*GetPlayersStatesRequest) String

func (x *GetPlayersStatesRequest) String() string

type GetPlayersStatesResponse

type GetPlayersStatesResponse struct {
	PlayerState *PlayerState `protobuf:"bytes,1,opt,name=player_state,json=playerState,proto3" json:"player_state,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPlayersStatesResponse) Descriptor deprecated

func (*GetPlayersStatesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetPlayersStatesResponse.ProtoReflect.Descriptor instead.

func (*GetPlayersStatesResponse) GetPlayerState

func (x *GetPlayersStatesResponse) GetPlayerState() *PlayerState

func (*GetPlayersStatesResponse) ProtoMessage

func (*GetPlayersStatesResponse) ProtoMessage()

func (*GetPlayersStatesResponse) ProtoReflect

func (x *GetPlayersStatesResponse) ProtoReflect() protoreflect.Message

func (*GetPlayersStatesResponse) Reset

func (x *GetPlayersStatesResponse) Reset()

func (*GetPlayersStatesResponse) String

func (x *GetPlayersStatesResponse) String() string

type GetSpotPlayersRequest

type GetSpotPlayersRequest struct {
	SpotUuid string `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSpotPlayersRequest) Descriptor deprecated

func (*GetSpotPlayersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSpotPlayersRequest.ProtoReflect.Descriptor instead.

func (*GetSpotPlayersRequest) GetSpotUuid

func (x *GetSpotPlayersRequest) GetSpotUuid() string

func (*GetSpotPlayersRequest) ProtoMessage

func (*GetSpotPlayersRequest) ProtoMessage()

func (*GetSpotPlayersRequest) ProtoReflect

func (x *GetSpotPlayersRequest) ProtoReflect() protoreflect.Message

func (*GetSpotPlayersRequest) Reset

func (x *GetSpotPlayersRequest) Reset()

func (*GetSpotPlayersRequest) String

func (x *GetSpotPlayersRequest) String() string

type GetSpotPlayersResponse

type GetSpotPlayersResponse struct {

	// List with players UUIDs
	PlayersList []string `protobuf:"bytes,1,rep,name=players_list,json=playersList,proto3" json:"players_list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSpotPlayersResponse) Descriptor deprecated

func (*GetSpotPlayersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSpotPlayersResponse.ProtoReflect.Descriptor instead.

func (*GetSpotPlayersResponse) GetPlayersList

func (x *GetSpotPlayersResponse) GetPlayersList() []string

func (*GetSpotPlayersResponse) ProtoMessage

func (*GetSpotPlayersResponse) ProtoMessage()

func (*GetSpotPlayersResponse) ProtoReflect

func (x *GetSpotPlayersResponse) ProtoReflect() protoreflect.Message

func (*GetSpotPlayersResponse) Reset

func (x *GetSpotPlayersResponse) Reset()

func (*GetSpotPlayersResponse) String

func (x *GetSpotPlayersResponse) String() string

type GetSpotRequest

type GetSpotRequest struct {
	SpotUuid string `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSpotRequest) Descriptor deprecated

func (*GetSpotRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSpotRequest.ProtoReflect.Descriptor instead.

func (*GetSpotRequest) GetSpotUuid

func (x *GetSpotRequest) GetSpotUuid() string

func (*GetSpotRequest) ProtoMessage

func (*GetSpotRequest) ProtoMessage()

func (*GetSpotRequest) ProtoReflect

func (x *GetSpotRequest) ProtoReflect() protoreflect.Message

func (*GetSpotRequest) Reset

func (x *GetSpotRequest) Reset()

func (*GetSpotRequest) String

func (x *GetSpotRequest) String() string

type GetSpotResponse

type GetSpotResponse struct {
	Position            *Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	RadiusInM           float32   `protobuf:"fixed32,2,opt,name=radius_in_m,json=radiusInM,proto3" json:"radius_in_m,omitempty"`
	ScanPeriodInSeconds int32     `protobuf:"varint,3,opt,name=scan_period_in_seconds,json=scanPeriodInSeconds,proto3" json:"scan_period_in_seconds,omitempty"`
	ZonePeriodInSeconds int32     `protobuf:"varint,4,opt,name=zone_period_in_seconds,json=zonePeriodInSeconds,proto3" json:"zone_period_in_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSpotResponse) Descriptor deprecated

func (*GetSpotResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSpotResponse.ProtoReflect.Descriptor instead.

func (*GetSpotResponse) GetPosition

func (x *GetSpotResponse) GetPosition() *Position

func (*GetSpotResponse) GetRadiusInM

func (x *GetSpotResponse) GetRadiusInM() float32

func (*GetSpotResponse) GetScanPeriodInSeconds

func (x *GetSpotResponse) GetScanPeriodInSeconds() int32

func (*GetSpotResponse) GetZonePeriodInSeconds

func (x *GetSpotResponse) GetZonePeriodInSeconds() int32

func (*GetSpotResponse) ProtoMessage

func (*GetSpotResponse) ProtoMessage()

func (*GetSpotResponse) ProtoReflect

func (x *GetSpotResponse) ProtoReflect() protoreflect.Message

func (*GetSpotResponse) Reset

func (x *GetSpotResponse) Reset()

func (*GetSpotResponse) String

func (x *GetSpotResponse) String() string

type IsPlayerHunterRequest

type IsPlayerHunterRequest struct {
	SpotUuid   string `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	PlayerUuid string `protobuf:"bytes,2,opt,name=player_uuid,json=playerUuid,proto3" json:"player_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*IsPlayerHunterRequest) Descriptor deprecated

func (*IsPlayerHunterRequest) Descriptor() ([]byte, []int)

Deprecated: Use IsPlayerHunterRequest.ProtoReflect.Descriptor instead.

func (*IsPlayerHunterRequest) GetPlayerUuid

func (x *IsPlayerHunterRequest) GetPlayerUuid() string

func (*IsPlayerHunterRequest) GetSpotUuid

func (x *IsPlayerHunterRequest) GetSpotUuid() string

func (*IsPlayerHunterRequest) ProtoMessage

func (*IsPlayerHunterRequest) ProtoMessage()

func (*IsPlayerHunterRequest) ProtoReflect

func (x *IsPlayerHunterRequest) ProtoReflect() protoreflect.Message

func (*IsPlayerHunterRequest) Reset

func (x *IsPlayerHunterRequest) Reset()

func (*IsPlayerHunterRequest) String

func (x *IsPlayerHunterRequest) String() string

type IsPlayerHunterResponse

type IsPlayerHunterResponse struct {
	IsHunter bool `protobuf:"varint,1,opt,name=is_hunter,json=isHunter,proto3" json:"is_hunter,omitempty"`
	// contains filtered or unexported fields
}

func (*IsPlayerHunterResponse) Descriptor deprecated

func (*IsPlayerHunterResponse) Descriptor() ([]byte, []int)

Deprecated: Use IsPlayerHunterResponse.ProtoReflect.Descriptor instead.

func (*IsPlayerHunterResponse) GetIsHunter

func (x *IsPlayerHunterResponse) GetIsHunter() bool

func (*IsPlayerHunterResponse) ProtoMessage

func (*IsPlayerHunterResponse) ProtoMessage()

func (*IsPlayerHunterResponse) ProtoReflect

func (x *IsPlayerHunterResponse) ProtoReflect() protoreflect.Message

func (*IsPlayerHunterResponse) Reset

func (x *IsPlayerHunterResponse) Reset()

func (*IsPlayerHunterResponse) String

func (x *IsPlayerHunterResponse) String() string

type JoinToSpotRequest

type JoinToSpotRequest struct {
	SpotUuid   string `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	PlayerUuid string `protobuf:"bytes,2,opt,name=player_uuid,json=playerUuid,proto3" json:"player_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinToSpotRequest) Descriptor deprecated

func (*JoinToSpotRequest) Descriptor() ([]byte, []int)

Deprecated: Use JoinToSpotRequest.ProtoReflect.Descriptor instead.

func (*JoinToSpotRequest) GetPlayerUuid

func (x *JoinToSpotRequest) GetPlayerUuid() string

func (*JoinToSpotRequest) GetSpotUuid

func (x *JoinToSpotRequest) GetSpotUuid() string

func (*JoinToSpotRequest) ProtoMessage

func (*JoinToSpotRequest) ProtoMessage()

func (*JoinToSpotRequest) ProtoReflect

func (x *JoinToSpotRequest) ProtoReflect() protoreflect.Message

func (*JoinToSpotRequest) Reset

func (x *JoinToSpotRequest) Reset()

func (*JoinToSpotRequest) String

func (x *JoinToSpotRequest) String() string

type JoinToSpotResponse

type JoinToSpotResponse struct {
	// contains filtered or unexported fields
}

func (*JoinToSpotResponse) Descriptor deprecated

func (*JoinToSpotResponse) Descriptor() ([]byte, []int)

Deprecated: Use JoinToSpotResponse.ProtoReflect.Descriptor instead.

func (*JoinToSpotResponse) ProtoMessage

func (*JoinToSpotResponse) ProtoMessage()

func (*JoinToSpotResponse) ProtoReflect

func (x *JoinToSpotResponse) ProtoReflect() protoreflect.Message

func (*JoinToSpotResponse) Reset

func (x *JoinToSpotResponse) Reset()

func (*JoinToSpotResponse) String

func (x *JoinToSpotResponse) String() string

type LeaveSpotRequest

type LeaveSpotRequest struct {
	SpotUuid   string `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	PlayerUuid string `protobuf:"bytes,2,opt,name=player_uuid,json=playerUuid,proto3" json:"player_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*LeaveSpotRequest) Descriptor deprecated

func (*LeaveSpotRequest) Descriptor() ([]byte, []int)

Deprecated: Use LeaveSpotRequest.ProtoReflect.Descriptor instead.

func (*LeaveSpotRequest) GetPlayerUuid

func (x *LeaveSpotRequest) GetPlayerUuid() string

func (*LeaveSpotRequest) GetSpotUuid

func (x *LeaveSpotRequest) GetSpotUuid() string

func (*LeaveSpotRequest) ProtoMessage

func (*LeaveSpotRequest) ProtoMessage()

func (*LeaveSpotRequest) ProtoReflect

func (x *LeaveSpotRequest) ProtoReflect() protoreflect.Message

func (*LeaveSpotRequest) Reset

func (x *LeaveSpotRequest) Reset()

func (*LeaveSpotRequest) String

func (x *LeaveSpotRequest) String() string

type LeaveSpotResponse

type LeaveSpotResponse struct {
	// contains filtered or unexported fields
}

func (*LeaveSpotResponse) Descriptor deprecated

func (*LeaveSpotResponse) Descriptor() ([]byte, []int)

Deprecated: Use LeaveSpotResponse.ProtoReflect.Descriptor instead.

func (*LeaveSpotResponse) ProtoMessage

func (*LeaveSpotResponse) ProtoMessage()

func (*LeaveSpotResponse) ProtoReflect

func (x *LeaveSpotResponse) ProtoReflect() protoreflect.Message

func (*LeaveSpotResponse) Reset

func (x *LeaveSpotResponse) Reset()

func (*LeaveSpotResponse) String

func (x *LeaveSpotResponse) String() string

type PlayerState

type PlayerState struct {
	PlayerUuid string    `protobuf:"bytes,1,opt,name=player_uuid,json=playerUuid,proto3" json:"player_uuid,omitempty"`
	Position   *Position `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	Health     float32   `protobuf:"fixed32,3,opt,name=health,proto3" json:"health,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerState) Descriptor deprecated

func (*PlayerState) Descriptor() ([]byte, []int)

Deprecated: Use PlayerState.ProtoReflect.Descriptor instead.

func (*PlayerState) GetHealth

func (x *PlayerState) GetHealth() float32

func (*PlayerState) GetPlayerUuid

func (x *PlayerState) GetPlayerUuid() string

func (*PlayerState) GetPosition

func (x *PlayerState) GetPosition() *Position

func (*PlayerState) ProtoMessage

func (*PlayerState) ProtoMessage()

func (*PlayerState) ProtoReflect

func (x *PlayerState) ProtoReflect() protoreflect.Message

func (*PlayerState) Reset

func (x *PlayerState) Reset()

func (*PlayerState) String

func (x *PlayerState) String() string

type Position

type Position struct {
	Longitude float64 `protobuf:"fixed64,1,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Latitude  float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	// contains filtered or unexported fields
}

func (*Position) Descriptor deprecated

func (*Position) Descriptor() ([]byte, []int)

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetLatitude

func (x *Position) GetLatitude() float64

func (*Position) GetLongitude

func (x *Position) GetLongitude() float64

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

func (x *Position) ProtoReflect() protoreflect.Message

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type SendPlayerPositionRequest

type SendPlayerPositionRequest struct {
	SpotUuid   string    `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	PlayerUuid string    `protobuf:"bytes,2,opt,name=player_uuid,json=playerUuid,proto3" json:"player_uuid,omitempty"`
	Position   *Position `protobuf:"bytes,3,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

func (*SendPlayerPositionRequest) Descriptor deprecated

func (*SendPlayerPositionRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendPlayerPositionRequest.ProtoReflect.Descriptor instead.

func (*SendPlayerPositionRequest) GetPlayerUuid

func (x *SendPlayerPositionRequest) GetPlayerUuid() string

func (*SendPlayerPositionRequest) GetPosition

func (x *SendPlayerPositionRequest) GetPosition() *Position

func (*SendPlayerPositionRequest) GetSpotUuid

func (x *SendPlayerPositionRequest) GetSpotUuid() string

func (*SendPlayerPositionRequest) ProtoMessage

func (*SendPlayerPositionRequest) ProtoMessage()

func (*SendPlayerPositionRequest) ProtoReflect

func (*SendPlayerPositionRequest) Reset

func (x *SendPlayerPositionRequest) Reset()

func (*SendPlayerPositionRequest) String

func (x *SendPlayerPositionRequest) String() string

type SendPlayerPositionResponse

type SendPlayerPositionResponse struct {
	// contains filtered or unexported fields
}

func (*SendPlayerPositionResponse) Descriptor deprecated

func (*SendPlayerPositionResponse) Descriptor() ([]byte, []int)

Deprecated: Use SendPlayerPositionResponse.ProtoReflect.Descriptor instead.

func (*SendPlayerPositionResponse) ProtoMessage

func (*SendPlayerPositionResponse) ProtoMessage()

func (*SendPlayerPositionResponse) ProtoReflect

func (*SendPlayerPositionResponse) Reset

func (x *SendPlayerPositionResponse) Reset()

func (*SendPlayerPositionResponse) String

func (x *SendPlayerPositionResponse) String() string

type SpotServiceClient

type SpotServiceClient interface {
	CreateSpot(ctx context.Context, in *CreateSpotRequest, opts ...grpc.CallOption) (*CreateSpotResponse, error)
	GetSpot(ctx context.Context, in *GetSpotRequest, opts ...grpc.CallOption) (*GetSpotResponse, error)
	JoinToSpot(ctx context.Context, in *JoinToSpotRequest, opts ...grpc.CallOption) (*JoinToSpotResponse, error)
	LeaveSpot(ctx context.Context, in *LeaveSpotRequest, opts ...grpc.CallOption) (*LeaveSpotResponse, error)
	// GetSpotPlayers returns stream of players in spot
	// If new player will be connected to spot, it will be sent
	GetSpotPlayers(ctx context.Context, in *GetSpotPlayersRequest, opts ...grpc.CallOption) (SpotService_GetSpotPlayersClient, error)
	StartSpot(ctx context.Context, in *StartSpotRequest, opts ...grpc.CallOption) (*StartSpotResponse, error)
	IsPlayerHunter(ctx context.Context, in *IsPlayerHunterRequest, opts ...grpc.CallOption) (*IsPlayerHunterResponse, error)
	SubGameEvent(ctx context.Context, in *SubGameEventRequest, opts ...grpc.CallOption) (SpotService_SubGameEventClient, error)
	SendPlayerPosition(ctx context.Context, opts ...grpc.CallOption) (SpotService_SendPlayerPositionClient, error)
	// GetPlayersStates returns stream of all players data (this player and others)
	// Data will be received on each new position or health status
	GetPlayersStates(ctx context.Context, in *GetPlayersStatesRequest, opts ...grpc.CallOption) (SpotService_GetPlayersStatesClient, error)
	// SubZoneEvent returns stream of zones events
	SubZoneEvent(ctx context.Context, in *SubZoneEventRequest, opts ...grpc.CallOption) (SpotService_SubZoneEventClient, error)
}

SpotServiceClient is the client API for SpotService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SpotServiceServer

type SpotServiceServer interface {
	CreateSpot(context.Context, *CreateSpotRequest) (*CreateSpotResponse, error)
	GetSpot(context.Context, *GetSpotRequest) (*GetSpotResponse, error)
	JoinToSpot(context.Context, *JoinToSpotRequest) (*JoinToSpotResponse, error)
	LeaveSpot(context.Context, *LeaveSpotRequest) (*LeaveSpotResponse, error)
	// GetSpotPlayers returns stream of players in spot
	// If new player will be connected to spot, it will be sent
	GetSpotPlayers(*GetSpotPlayersRequest, SpotService_GetSpotPlayersServer) error
	StartSpot(context.Context, *StartSpotRequest) (*StartSpotResponse, error)
	IsPlayerHunter(context.Context, *IsPlayerHunterRequest) (*IsPlayerHunterResponse, error)
	SubGameEvent(*SubGameEventRequest, SpotService_SubGameEventServer) error
	SendPlayerPosition(SpotService_SendPlayerPositionServer) error
	// GetPlayersStates returns stream of all players data (this player and others)
	// Data will be received on each new position or health status
	GetPlayersStates(*GetPlayersStatesRequest, SpotService_GetPlayersStatesServer) error
	// SubZoneEvent returns stream of zones events
	SubZoneEvent(*SubZoneEventRequest, SpotService_SubZoneEventServer) error
	// contains filtered or unexported methods
}

SpotServiceServer is the server API for SpotService service. All implementations must embed UnimplementedSpotServiceServer for forward compatibility

type SpotService_GetPlayersStatesClient

type SpotService_GetPlayersStatesClient interface {
	Recv() (*GetPlayersStatesResponse, error)
	grpc.ClientStream
}

type SpotService_GetPlayersStatesServer

type SpotService_GetPlayersStatesServer interface {
	Send(*GetPlayersStatesResponse) error
	grpc.ServerStream
}

type SpotService_GetSpotPlayersClient

type SpotService_GetSpotPlayersClient interface {
	Recv() (*GetSpotPlayersResponse, error)
	grpc.ClientStream
}

type SpotService_GetSpotPlayersServer

type SpotService_GetSpotPlayersServer interface {
	Send(*GetSpotPlayersResponse) error
	grpc.ServerStream
}

type SpotService_SendPlayerPositionClient

type SpotService_SendPlayerPositionClient interface {
	Send(*SendPlayerPositionRequest) error
	CloseAndRecv() (*SendPlayerPositionResponse, error)
	grpc.ClientStream
}

type SpotService_SendPlayerPositionServer

type SpotService_SendPlayerPositionServer interface {
	SendAndClose(*SendPlayerPositionResponse) error
	Recv() (*SendPlayerPositionRequest, error)
	grpc.ServerStream
}

type SpotService_SubGameEventClient

type SpotService_SubGameEventClient interface {
	Recv() (*SubGameEventResponse, error)
	grpc.ClientStream
}

type SpotService_SubGameEventServer

type SpotService_SubGameEventServer interface {
	Send(*SubGameEventResponse) error
	grpc.ServerStream
}

type SpotService_SubZoneEventClient

type SpotService_SubZoneEventClient interface {
	Recv() (*SubZoneEventResponse, error)
	grpc.ClientStream
}

type SpotService_SubZoneEventServer

type SpotService_SubZoneEventServer interface {
	Send(*SubZoneEventResponse) error
	grpc.ServerStream
}

type StartGameEvent

type StartGameEvent struct {
	// contains filtered or unexported fields
}

func (*StartGameEvent) Descriptor deprecated

func (*StartGameEvent) Descriptor() ([]byte, []int)

Deprecated: Use StartGameEvent.ProtoReflect.Descriptor instead.

func (*StartGameEvent) ProtoMessage

func (*StartGameEvent) ProtoMessage()

func (*StartGameEvent) ProtoReflect

func (x *StartGameEvent) ProtoReflect() protoreflect.Message

func (*StartGameEvent) Reset

func (x *StartGameEvent) Reset()

func (*StartGameEvent) String

func (x *StartGameEvent) String() string

type StartNextZoneTimerEvent

type StartNextZoneTimerEvent struct {
	CurrentZone       *ZoneState `protobuf:"bytes,1,opt,name=current_zone,json=currentZone,proto3" json:"current_zone,omitempty"`
	NextZoneTimestamp int64      `protobuf:"varint,2,opt,name=next_zone_timestamp,json=nextZoneTimestamp,proto3" json:"next_zone_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*StartNextZoneTimerEvent) Descriptor deprecated

func (*StartNextZoneTimerEvent) Descriptor() ([]byte, []int)

Deprecated: Use StartNextZoneTimerEvent.ProtoReflect.Descriptor instead.

func (*StartNextZoneTimerEvent) GetCurrentZone

func (x *StartNextZoneTimerEvent) GetCurrentZone() *ZoneState

func (*StartNextZoneTimerEvent) GetNextZoneTimestamp

func (x *StartNextZoneTimerEvent) GetNextZoneTimestamp() int64

func (*StartNextZoneTimerEvent) ProtoMessage

func (*StartNextZoneTimerEvent) ProtoMessage()

func (*StartNextZoneTimerEvent) ProtoReflect

func (x *StartNextZoneTimerEvent) ProtoReflect() protoreflect.Message

func (*StartNextZoneTimerEvent) Reset

func (x *StartNextZoneTimerEvent) Reset()

func (*StartNextZoneTimerEvent) String

func (x *StartNextZoneTimerEvent) String() string

type StartSpotRequest

type StartSpotRequest struct {
	SpotUuid string `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*StartSpotRequest) Descriptor deprecated

func (*StartSpotRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartSpotRequest.ProtoReflect.Descriptor instead.

func (*StartSpotRequest) GetSpotUuid

func (x *StartSpotRequest) GetSpotUuid() string

func (*StartSpotRequest) ProtoMessage

func (*StartSpotRequest) ProtoMessage()

func (*StartSpotRequest) ProtoReflect

func (x *StartSpotRequest) ProtoReflect() protoreflect.Message

func (*StartSpotRequest) Reset

func (x *StartSpotRequest) Reset()

func (*StartSpotRequest) String

func (x *StartSpotRequest) String() string

type StartSpotResponse

type StartSpotResponse struct {
	// contains filtered or unexported fields
}

func (*StartSpotResponse) Descriptor deprecated

func (*StartSpotResponse) Descriptor() ([]byte, []int)

Deprecated: Use StartSpotResponse.ProtoReflect.Descriptor instead.

func (*StartSpotResponse) ProtoMessage

func (*StartSpotResponse) ProtoMessage()

func (*StartSpotResponse) ProtoReflect

func (x *StartSpotResponse) ProtoReflect() protoreflect.Message

func (*StartSpotResponse) Reset

func (x *StartSpotResponse) Reset()

func (*StartSpotResponse) String

func (x *StartSpotResponse) String() string

type StartZoneDelayTimerEvent

type StartZoneDelayTimerEvent struct {
	CurrentZone            *ZoneState `protobuf:"bytes,1,opt,name=current_zone,json=currentZone,proto3" json:"current_zone,omitempty"`
	NextZone               *ZoneState `protobuf:"bytes,2,opt,name=next_zone,json=nextZone,proto3" json:"next_zone,omitempty"`
	ZoneTickStartTimestamp int64      `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StartZoneDelayTimerEvent) Descriptor deprecated

func (*StartZoneDelayTimerEvent) Descriptor() ([]byte, []int)

Deprecated: Use StartZoneDelayTimerEvent.ProtoReflect.Descriptor instead.

func (*StartZoneDelayTimerEvent) GetCurrentZone

func (x *StartZoneDelayTimerEvent) GetCurrentZone() *ZoneState

func (*StartZoneDelayTimerEvent) GetNextZone

func (x *StartZoneDelayTimerEvent) GetNextZone() *ZoneState

func (*StartZoneDelayTimerEvent) GetZoneTickStartTimestamp

func (x *StartZoneDelayTimerEvent) GetZoneTickStartTimestamp() int64

func (*StartZoneDelayTimerEvent) ProtoMessage

func (*StartZoneDelayTimerEvent) ProtoMessage()

func (*StartZoneDelayTimerEvent) ProtoReflect

func (x *StartZoneDelayTimerEvent) ProtoReflect() protoreflect.Message

func (*StartZoneDelayTimerEvent) Reset

func (x *StartZoneDelayTimerEvent) Reset()

func (*StartZoneDelayTimerEvent) String

func (x *StartZoneDelayTimerEvent) String() string

type StopGameEvent

type StopGameEvent struct {
	Winner StopGameEvent_GameWinner `protobuf:"varint,1,opt,name=winner,proto3,enum=spot.v1.StopGameEvent_GameWinner" json:"winner,omitempty"`
	// contains filtered or unexported fields
}

func (*StopGameEvent) Descriptor deprecated

func (*StopGameEvent) Descriptor() ([]byte, []int)

Deprecated: Use StopGameEvent.ProtoReflect.Descriptor instead.

func (*StopGameEvent) GetWinner

func (x *StopGameEvent) GetWinner() StopGameEvent_GameWinner

func (*StopGameEvent) ProtoMessage

func (*StopGameEvent) ProtoMessage()

func (*StopGameEvent) ProtoReflect

func (x *StopGameEvent) ProtoReflect() protoreflect.Message

func (*StopGameEvent) Reset

func (x *StopGameEvent) Reset()

func (*StopGameEvent) String

func (x *StopGameEvent) String() string

type StopGameEvent_GameWinner

type StopGameEvent_GameWinner int32
const (
	StopGameEvent_GAME_WINNER_UNSPECIFIED StopGameEvent_GameWinner = 0
	StopGameEvent_GAME_WINNER_HUNTER      StopGameEvent_GameWinner = 1
	StopGameEvent_GAME_WINNER_VICTIMS     StopGameEvent_GameWinner = 2
	StopGameEvent_GAME_WINNER_DRAW        StopGameEvent_GameWinner = 3
)

func (StopGameEvent_GameWinner) Descriptor

func (StopGameEvent_GameWinner) Enum

func (StopGameEvent_GameWinner) EnumDescriptor deprecated

func (StopGameEvent_GameWinner) EnumDescriptor() ([]byte, []int)

Deprecated: Use StopGameEvent_GameWinner.Descriptor instead.

func (StopGameEvent_GameWinner) Number

func (StopGameEvent_GameWinner) String

func (x StopGameEvent_GameWinner) String() string

func (StopGameEvent_GameWinner) Type

type SubGameEventRequest

type SubGameEventRequest struct {
	SpotUuid string `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*SubGameEventRequest) Descriptor deprecated

func (*SubGameEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubGameEventRequest.ProtoReflect.Descriptor instead.

func (*SubGameEventRequest) GetSpotUuid

func (x *SubGameEventRequest) GetSpotUuid() string

func (*SubGameEventRequest) ProtoMessage

func (*SubGameEventRequest) ProtoMessage()

func (*SubGameEventRequest) ProtoReflect

func (x *SubGameEventRequest) ProtoReflect() protoreflect.Message

func (*SubGameEventRequest) Reset

func (x *SubGameEventRequest) Reset()

func (*SubGameEventRequest) String

func (x *SubGameEventRequest) String() string

type SubGameEventResponse

type SubGameEventResponse struct {

	// Types that are assignable to Event:
	//	*SubGameEventResponse_StartGameEvent
	//	*SubGameEventResponse_StopGameEvent
	Event isSubGameEventResponse_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

func (*SubGameEventResponse) Descriptor deprecated

func (*SubGameEventResponse) Descriptor() ([]byte, []int)

Deprecated: Use SubGameEventResponse.ProtoReflect.Descriptor instead.

func (*SubGameEventResponse) GetEvent

func (m *SubGameEventResponse) GetEvent() isSubGameEventResponse_Event

func (*SubGameEventResponse) GetStartGameEvent

func (x *SubGameEventResponse) GetStartGameEvent() *StartGameEvent

func (*SubGameEventResponse) GetStopGameEvent

func (x *SubGameEventResponse) GetStopGameEvent() *StopGameEvent

func (*SubGameEventResponse) ProtoMessage

func (*SubGameEventResponse) ProtoMessage()

func (*SubGameEventResponse) ProtoReflect

func (x *SubGameEventResponse) ProtoReflect() protoreflect.Message

func (*SubGameEventResponse) Reset

func (x *SubGameEventResponse) Reset()

func (*SubGameEventResponse) String

func (x *SubGameEventResponse) String() string

type SubGameEventResponse_StartGameEvent

type SubGameEventResponse_StartGameEvent struct {
	StartGameEvent *StartGameEvent `protobuf:"bytes,1,opt,name=start_game_event,json=startGameEvent,proto3,oneof"`
}

type SubGameEventResponse_StopGameEvent

type SubGameEventResponse_StopGameEvent struct {
	StopGameEvent *StopGameEvent `protobuf:"bytes,2,opt,name=stop_game_event,json=stopGameEvent,proto3,oneof"`
}

type SubZoneEventRequest

type SubZoneEventRequest struct {
	SpotUuid string `protobuf:"bytes,1,opt,name=spot_uuid,json=spotUuid,proto3" json:"spot_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*SubZoneEventRequest) Descriptor deprecated

func (*SubZoneEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubZoneEventRequest.ProtoReflect.Descriptor instead.

func (*SubZoneEventRequest) GetSpotUuid

func (x *SubZoneEventRequest) GetSpotUuid() string

func (*SubZoneEventRequest) ProtoMessage

func (*SubZoneEventRequest) ProtoMessage()

func (*SubZoneEventRequest) ProtoReflect

func (x *SubZoneEventRequest) ProtoReflect() protoreflect.Message

func (*SubZoneEventRequest) Reset

func (x *SubZoneEventRequest) Reset()

func (*SubZoneEventRequest) String

func (x *SubZoneEventRequest) String() string

type SubZoneEventResponse

type SubZoneEventResponse struct {

	// Types that are assignable to Event:
	//	*SubZoneEventResponse_StartNextZoneTimerEvent
	//	*SubZoneEventResponse_StartZoneDelayTimerEvent
	//	*SubZoneEventResponse_ZoneTickEvent
	Event isSubZoneEventResponse_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

func (*SubZoneEventResponse) Descriptor deprecated

func (*SubZoneEventResponse) Descriptor() ([]byte, []int)

Deprecated: Use SubZoneEventResponse.ProtoReflect.Descriptor instead.

func (*SubZoneEventResponse) GetEvent

func (m *SubZoneEventResponse) GetEvent() isSubZoneEventResponse_Event

func (*SubZoneEventResponse) GetStartNextZoneTimerEvent

func (x *SubZoneEventResponse) GetStartNextZoneTimerEvent() *StartNextZoneTimerEvent

func (*SubZoneEventResponse) GetStartZoneDelayTimerEvent

func (x *SubZoneEventResponse) GetStartZoneDelayTimerEvent() *StartZoneDelayTimerEvent

func (*SubZoneEventResponse) GetZoneTickEvent

func (x *SubZoneEventResponse) GetZoneTickEvent() *ZoneTickEvent

func (*SubZoneEventResponse) ProtoMessage

func (*SubZoneEventResponse) ProtoMessage()

func (*SubZoneEventResponse) ProtoReflect

func (x *SubZoneEventResponse) ProtoReflect() protoreflect.Message

func (*SubZoneEventResponse) Reset

func (x *SubZoneEventResponse) Reset()

func (*SubZoneEventResponse) String

func (x *SubZoneEventResponse) String() string

type SubZoneEventResponse_StartNextZoneTimerEvent

type SubZoneEventResponse_StartNextZoneTimerEvent struct {
	StartNextZoneTimerEvent *StartNextZoneTimerEvent `protobuf:"bytes,1,opt,name=start_next_zone_timer_event,json=startNextZoneTimerEvent,proto3,oneof"`
}

type SubZoneEventResponse_StartZoneDelayTimerEvent

type SubZoneEventResponse_StartZoneDelayTimerEvent struct {
	StartZoneDelayTimerEvent *StartZoneDelayTimerEvent `protobuf:"bytes,2,opt,name=start_zone_delay_timer_event,json=startZoneDelayTimerEvent,proto3,oneof"`
}

type SubZoneEventResponse_ZoneTickEvent

type SubZoneEventResponse_ZoneTickEvent struct {
	ZoneTickEvent *ZoneTickEvent `protobuf:"bytes,3,opt,name=zone_tick_event,json=zoneTickEvent,proto3,oneof"`
}

type UnimplementedSpotServiceServer

type UnimplementedSpotServiceServer struct {
}

UnimplementedSpotServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSpotServiceServer) CreateSpot

func (UnimplementedSpotServiceServer) GetSpot

func (UnimplementedSpotServiceServer) GetSpotPlayers

func (UnimplementedSpotServiceServer) IsPlayerHunter

func (UnimplementedSpotServiceServer) JoinToSpot

func (UnimplementedSpotServiceServer) LeaveSpot

func (UnimplementedSpotServiceServer) SendPlayerPosition

func (UnimplementedSpotServiceServer) StartSpot

func (UnimplementedSpotServiceServer) SubGameEvent

func (UnimplementedSpotServiceServer) SubZoneEvent

type UnsafeSpotServiceServer

type UnsafeSpotServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSpotServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SpotServiceServer will result in compilation errors.

type ZoneState

type ZoneState struct {
	Position  *Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	RadiusInM float32   `protobuf:"fixed32,2,opt,name=radius_in_m,json=radiusInM,proto3" json:"radius_in_m,omitempty"`
	Damage    float32   `protobuf:"fixed32,3,opt,name=damage,proto3" json:"damage,omitempty"`
	// contains filtered or unexported fields
}

func (*ZoneState) Descriptor deprecated

func (*ZoneState) Descriptor() ([]byte, []int)

Deprecated: Use ZoneState.ProtoReflect.Descriptor instead.

func (*ZoneState) GetDamage

func (x *ZoneState) GetDamage() float32

func (*ZoneState) GetPosition

func (x *ZoneState) GetPosition() *Position

func (*ZoneState) GetRadiusInM

func (x *ZoneState) GetRadiusInM() float32

func (*ZoneState) ProtoMessage

func (*ZoneState) ProtoMessage()

func (*ZoneState) ProtoReflect

func (x *ZoneState) ProtoReflect() protoreflect.Message

func (*ZoneState) Reset

func (x *ZoneState) Reset()

func (*ZoneState) String

func (x *ZoneState) String() string

type ZoneTickEvent

type ZoneTickEvent struct {
	CurrentZone *ZoneState `protobuf:"bytes,1,opt,name=current_zone,json=currentZone,proto3" json:"current_zone,omitempty"`
	NextZone    *ZoneState `protobuf:"bytes,2,opt,name=next_zone,json=nextZone,proto3" json:"next_zone,omitempty"`
	// contains filtered or unexported fields
}

func (*ZoneTickEvent) Descriptor deprecated

func (*ZoneTickEvent) Descriptor() ([]byte, []int)

Deprecated: Use ZoneTickEvent.ProtoReflect.Descriptor instead.

func (*ZoneTickEvent) GetCurrentZone

func (x *ZoneTickEvent) GetCurrentZone() *ZoneState

func (*ZoneTickEvent) GetNextZone

func (x *ZoneTickEvent) GetNextZone() *ZoneState

func (*ZoneTickEvent) ProtoMessage

func (*ZoneTickEvent) ProtoMessage()

func (*ZoneTickEvent) ProtoReflect

func (x *ZoneTickEvent) ProtoReflect() protoreflect.Message

func (*ZoneTickEvent) Reset

func (x *ZoneTickEvent) Reset()

func (*ZoneTickEvent) String

func (x *ZoneTickEvent) String() string

Jump to

Keyboard shortcuts

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