Documentation ¶
Index ¶
- Variables
- type CompleteSessionRequest
- func (*CompleteSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteSessionRequest) GetCompletedAt() *timestamppb.Timestamp
- func (x *CompleteSessionRequest) GetPositions() []*Position
- func (x *CompleteSessionRequest) GetSession() string
- func (x *CompleteSessionRequest) GetSpread() bool
- func (*CompleteSessionRequest) ProtoMessage()
- func (x *CompleteSessionRequest) ProtoReflect() protoreflect.Message
- func (x *CompleteSessionRequest) Reset()
- func (x *CompleteSessionRequest) String() string
- type DissolveSessionRequest
- func (*DissolveSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DissolveSessionRequest) GetCompletedAt() *timestamppb.Timestamp
- func (x *DissolveSessionRequest) GetReason() string
- func (x *DissolveSessionRequest) GetSession() string
- func (*DissolveSessionRequest) ProtoMessage()
- func (x *DissolveSessionRequest) ProtoReflect() protoreflect.Message
- func (x *DissolveSessionRequest) Reset()
- func (x *DissolveSessionRequest) String() string
- type InitiateSessionRequest
- func (*InitiateSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitiateSessionRequest) GetEntry() int32
- func (x *InitiateSessionRequest) GetInitiatedAt() *timestamppb.Timestamp
- func (x *InitiateSessionRequest) GetPrize() int32
- func (x *InitiateSessionRequest) GetSeats() int32
- func (x *InitiateSessionRequest) GetTitle() string
- func (*InitiateSessionRequest) ProtoMessage()
- func (x *InitiateSessionRequest) ProtoReflect() protoreflect.Message
- func (x *InitiateSessionRequest) Reset()
- func (x *InitiateSessionRequest) String() string
- type Position
- func (*Position) Descriptor() ([]byte, []int)deprecated
- func (x *Position) GetDuration() int32
- func (x *Position) GetPlace() int32
- func (x *Position) GetPlayer() string
- func (x *Position) GetPrize() int32
- func (x *Position) GetScore() int32
- func (*Position) ProtoMessage()
- func (x *Position) ProtoReflect() protoreflect.Message
- func (x *Position) Reset()
- func (x *Position) String() string
- type UnifiedSessionResponse
- func (*UnifiedSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnifiedSessionResponse) GetIdentifier() string
- func (x *UnifiedSessionResponse) GetPlayers() []*v1.UnifiedPlayerResponse
- func (x *UnifiedSessionResponse) GetStatus() string
- func (*UnifiedSessionResponse) ProtoMessage()
- func (x *UnifiedSessionResponse) ProtoReflect() protoreflect.Message
- func (x *UnifiedSessionResponse) Reset()
- func (x *UnifiedSessionResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_linq_play_sessions_v1_sessions_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CompleteSessionRequest ¶
type CompleteSessionRequest struct { // Session identifier created on init Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` // Final leaderboard table for the tournament Positions []*Position `protobuf:"bytes,2,rep,name=positions,proto3" json:"positions,omitempty"` // Marks that tournament after finishin has to spread money automatically // based on the leaderboard table Spread *bool `protobuf:"varint,3,opt,name=spread,proto3,oneof" json:"spread,omitempty"` // Timestamp when the session was completed CompletedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=completed_at,json=completedAt,proto3,oneof" json:"completed_at,omitempty"` // contains filtered or unexported fields }
Params for stopping play session
func (*CompleteSessionRequest) Descriptor
deprecated
func (*CompleteSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteSessionRequest.ProtoReflect.Descriptor instead.
func (*CompleteSessionRequest) GetCompletedAt ¶
func (x *CompleteSessionRequest) GetCompletedAt() *timestamppb.Timestamp
func (*CompleteSessionRequest) GetPositions ¶
func (x *CompleteSessionRequest) GetPositions() []*Position
func (*CompleteSessionRequest) GetSession ¶
func (x *CompleteSessionRequest) GetSession() string
func (*CompleteSessionRequest) GetSpread ¶
func (x *CompleteSessionRequest) GetSpread() bool
func (*CompleteSessionRequest) ProtoMessage ¶
func (*CompleteSessionRequest) ProtoMessage()
func (*CompleteSessionRequest) ProtoReflect ¶
func (x *CompleteSessionRequest) ProtoReflect() protoreflect.Message
func (*CompleteSessionRequest) Reset ¶
func (x *CompleteSessionRequest) Reset()
func (*CompleteSessionRequest) String ¶
func (x *CompleteSessionRequest) String() string
type DissolveSessionRequest ¶
type DissolveSessionRequest struct { // Session identifier created on init Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` // Reason why session was dropped, in free form Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // Timestamp when the session was completed CompletedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=completed_at,json=completedAt,proto3,oneof" json:"completed_at,omitempty"` // contains filtered or unexported fields }
Params for terminating play session
func (*DissolveSessionRequest) Descriptor
deprecated
func (*DissolveSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DissolveSessionRequest.ProtoReflect.Descriptor instead.
func (*DissolveSessionRequest) GetCompletedAt ¶
func (x *DissolveSessionRequest) GetCompletedAt() *timestamppb.Timestamp
func (*DissolveSessionRequest) GetReason ¶
func (x *DissolveSessionRequest) GetReason() string
func (*DissolveSessionRequest) GetSession ¶
func (x *DissolveSessionRequest) GetSession() string
func (*DissolveSessionRequest) ProtoMessage ¶
func (*DissolveSessionRequest) ProtoMessage()
func (*DissolveSessionRequest) ProtoReflect ¶
func (x *DissolveSessionRequest) ProtoReflect() protoreflect.Message
func (*DissolveSessionRequest) Reset ¶
func (x *DissolveSessionRequest) Reset()
func (*DissolveSessionRequest) String ¶
func (x *DissolveSessionRequest) String() string
type InitiateSessionRequest ¶
type InitiateSessionRequest struct { // Number of seats, like number of players in tournament Seats int32 `protobuf:"varint,1,opt,name=seats,proto3" json:"seats,omitempty"` // Total prize pool for the tournament Prize int32 `protobuf:"varint,2,opt,name=prize,proto3" json:"prize,omitempty"` // Entry fee for the tournament Entry int32 `protobuf:"varint,3,opt,name=entry,proto3" json:"entry,omitempty"` // Title or human readable name of the game, tournament, etc Title *string `protobuf:"bytes,4,opt,name=title,proto3,oneof" json:"title,omitempty"` // Timestamp when the session was initiated InitiatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=initiated_at,json=initiatedAt,proto3,oneof" json:"initiated_at,omitempty"` // contains filtered or unexported fields }
Params for creating a new play session
func (*InitiateSessionRequest) Descriptor
deprecated
func (*InitiateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitiateSessionRequest.ProtoReflect.Descriptor instead.
func (*InitiateSessionRequest) GetEntry ¶
func (x *InitiateSessionRequest) GetEntry() int32
func (*InitiateSessionRequest) GetInitiatedAt ¶
func (x *InitiateSessionRequest) GetInitiatedAt() *timestamppb.Timestamp
func (*InitiateSessionRequest) GetPrize ¶
func (x *InitiateSessionRequest) GetPrize() int32
func (*InitiateSessionRequest) GetSeats ¶
func (x *InitiateSessionRequest) GetSeats() int32
func (*InitiateSessionRequest) GetTitle ¶
func (x *InitiateSessionRequest) GetTitle() string
func (*InitiateSessionRequest) ProtoMessage ¶
func (*InitiateSessionRequest) ProtoMessage()
func (*InitiateSessionRequest) ProtoReflect ¶
func (x *InitiateSessionRequest) ProtoReflect() protoreflect.Message
func (*InitiateSessionRequest) Reset ¶
func (x *InitiateSessionRequest) Reset()
func (*InitiateSessionRequest) String ¶
func (x *InitiateSessionRequest) String() string
type Position ¶
type Position struct { // Remote player ID returned on Join request Player string `protobuf:"bytes,1,opt,name=player,proto3" json:"player,omitempty"` // Place taken by the player Place int32 `protobuf:"varint,2,opt,name=place,proto3" json:"place,omitempty"` // Prize that has to be paid to the player Prize int32 `protobuf:"varint,3,opt,name=prize,proto3" json:"prize,omitempty"` // Score earned by the player Score *int32 `protobuf:"varint,4,opt,name=score,proto3,oneof" json:"score,omitempty"` // Duration spend by the player, in seconds Duration *int32 `protobuf:"varint,5,opt,name=duration,proto3,oneof" json:"duration,omitempty"` // contains filtered or unexported fields }
Agregated player info after game finished
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type UnifiedSessionResponse ¶
type UnifiedSessionResponse struct { // Session identifier created on initiate stage Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // Current status of the sessions on the wallet side Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // List of players that joined the session // It will return player with orders in case // when spread is true and session is completed Players []*v1.UnifiedPlayerResponse `protobuf:"bytes,3,rep,name=players,proto3" json:"players,omitempty"` // contains filtered or unexported fields }
Response definition for InitSession
func (*UnifiedSessionResponse) Descriptor
deprecated
func (*UnifiedSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnifiedSessionResponse.ProtoReflect.Descriptor instead.
func (*UnifiedSessionResponse) GetIdentifier ¶
func (x *UnifiedSessionResponse) GetIdentifier() string
func (*UnifiedSessionResponse) GetPlayers ¶
func (x *UnifiedSessionResponse) GetPlayers() []*v1.UnifiedPlayerResponse
func (*UnifiedSessionResponse) GetStatus ¶
func (x *UnifiedSessionResponse) GetStatus() string
func (*UnifiedSessionResponse) ProtoMessage ¶
func (*UnifiedSessionResponse) ProtoMessage()
func (*UnifiedSessionResponse) ProtoReflect ¶
func (x *UnifiedSessionResponse) ProtoReflect() protoreflect.Message
func (*UnifiedSessionResponse) Reset ¶
func (x *UnifiedSessionResponse) Reset()
func (*UnifiedSessionResponse) String ¶
func (x *UnifiedSessionResponse) String() string
Click to show internal directories.
Click to hide internal directories.