Documentation ¶
Index ¶
- Variables
- func RegisterGameServerMatchmakingServer(s grpc.ServiceRegistrar, srv GameServerMatchmakingServer)
- type GameServerMatchmakingClient
- type GameServerMatchmakingServer
- type MatchCancelledRequest
- func (*MatchCancelledRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MatchCancelledRequest) GetPlayerId() string
- func (*MatchCancelledRequest) ProtoMessage()
- func (x *MatchCancelledRequest) ProtoReflect() protoreflect.Message
- func (x *MatchCancelledRequest) Reset()
- func (x *MatchCancelledRequest) String() string
- type MatchFoundRequest
- func (*MatchFoundRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MatchFoundRequest) GetPlayerCount() uint32
- func (x *MatchFoundRequest) GetPlayerId() string
- func (x *MatchFoundRequest) GetTeleportTime() *timestamppb.Timestamp
- func (*MatchFoundRequest) ProtoMessage()
- func (x *MatchFoundRequest) ProtoReflect() protoreflect.Message
- func (x *MatchFoundRequest) Reset()
- func (x *MatchFoundRequest) String() string
- type UnimplementedGameServerMatchmakingServer
- type UnsafeGameServerMatchmakingServer
Constants ¶
This section is empty.
Variables ¶
var File_gameserver_gameserver_matchmaking_proto protoreflect.FileDescriptor
var GameServerMatchmaking_ServiceDesc = grpc.ServiceDesc{ ServiceName: "towerdefence.cc.service.gameserver.matchmaking.GameServerMatchmaking", HandlerType: (*GameServerMatchmakingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "MatchFound", Handler: _GameServerMatchmaking_MatchFound_Handler, }, { MethodName: "MatchCancelled", Handler: _GameServerMatchmaking_MatchCancelled_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "gameserver/gameserver_matchmaking.proto", }
GameServerMatchmaking_ServiceDesc is the grpc.ServiceDesc for GameServerMatchmaking service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGameServerMatchmakingServer ¶
func RegisterGameServerMatchmakingServer(s grpc.ServiceRegistrar, srv GameServerMatchmakingServer)
Types ¶
type GameServerMatchmakingClient ¶
type GameServerMatchmakingClient interface { MatchFound(ctx context.Context, in *MatchFoundRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) MatchCancelled(ctx context.Context, in *MatchCancelledRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
GameServerMatchmakingClient is the client API for GameServerMatchmaking 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.
func NewGameServerMatchmakingClient ¶
func NewGameServerMatchmakingClient(cc grpc.ClientConnInterface) GameServerMatchmakingClient
type GameServerMatchmakingServer ¶
type GameServerMatchmakingServer interface { MatchFound(context.Context, *MatchFoundRequest) (*emptypb.Empty, error) MatchCancelled(context.Context, *MatchCancelledRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
GameServerMatchmakingServer is the server API for GameServerMatchmaking service. All implementations must embed UnimplementedGameServerMatchmakingServer for forward compatibility
type MatchCancelledRequest ¶
type MatchCancelledRequest struct { PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"` // contains filtered or unexported fields }
func (*MatchCancelledRequest) Descriptor
deprecated
func (*MatchCancelledRequest) Descriptor() ([]byte, []int)
Deprecated: Use MatchCancelledRequest.ProtoReflect.Descriptor instead.
func (*MatchCancelledRequest) GetPlayerId ¶
func (x *MatchCancelledRequest) GetPlayerId() string
func (*MatchCancelledRequest) ProtoMessage ¶
func (*MatchCancelledRequest) ProtoMessage()
func (*MatchCancelledRequest) ProtoReflect ¶
func (x *MatchCancelledRequest) ProtoReflect() protoreflect.Message
func (*MatchCancelledRequest) Reset ¶
func (x *MatchCancelledRequest) Reset()
func (*MatchCancelledRequest) String ¶
func (x *MatchCancelledRequest) String() string
type MatchFoundRequest ¶
type MatchFoundRequest struct { PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"` PlayerCount uint32 `protobuf:"varint,3,opt,name=player_count,json=playerCount,proto3" json:"player_count,omitempty"` TeleportTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=teleport_time,json=teleportTime,proto3" json:"teleport_time,omitempty"` // contains filtered or unexported fields }
MatchFoundRequest is sent by the matchmaking director when a match is found. and ALSO when the player count is updated.
func (*MatchFoundRequest) Descriptor
deprecated
func (*MatchFoundRequest) Descriptor() ([]byte, []int)
Deprecated: Use MatchFoundRequest.ProtoReflect.Descriptor instead.
func (*MatchFoundRequest) GetPlayerCount ¶
func (x *MatchFoundRequest) GetPlayerCount() uint32
func (*MatchFoundRequest) GetPlayerId ¶
func (x *MatchFoundRequest) GetPlayerId() string
func (*MatchFoundRequest) GetTeleportTime ¶
func (x *MatchFoundRequest) GetTeleportTime() *timestamppb.Timestamp
func (*MatchFoundRequest) ProtoMessage ¶
func (*MatchFoundRequest) ProtoMessage()
func (*MatchFoundRequest) ProtoReflect ¶
func (x *MatchFoundRequest) ProtoReflect() protoreflect.Message
func (*MatchFoundRequest) Reset ¶
func (x *MatchFoundRequest) Reset()
func (*MatchFoundRequest) String ¶
func (x *MatchFoundRequest) String() string
type UnimplementedGameServerMatchmakingServer ¶
type UnimplementedGameServerMatchmakingServer struct { }
UnimplementedGameServerMatchmakingServer must be embedded to have forward compatible implementations.
func (UnimplementedGameServerMatchmakingServer) MatchCancelled ¶
func (UnimplementedGameServerMatchmakingServer) MatchCancelled(context.Context, *MatchCancelledRequest) (*emptypb.Empty, error)
func (UnimplementedGameServerMatchmakingServer) MatchFound ¶
func (UnimplementedGameServerMatchmakingServer) MatchFound(context.Context, *MatchFoundRequest) (*emptypb.Empty, error)
type UnsafeGameServerMatchmakingServer ¶
type UnsafeGameServerMatchmakingServer interface {
// contains filtered or unexported methods
}
UnsafeGameServerMatchmakingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GameServerMatchmakingServer will result in compilation errors.