Documentation ¶
Index ¶
- Variables
- func RegisterPorkerServiceServer(s grpc.ServiceRegistrar, srv PorkerServiceServer)
- type Ballot
- type CanEnterRoomRequest
- func (*CanEnterRoomRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CanEnterRoomRequest) GetLoginId() string
- func (x *CanEnterRoomRequest) GetRoomId() string
- func (*CanEnterRoomRequest) ProtoMessage()
- func (x *CanEnterRoomRequest) ProtoReflect() protoreflect.Message
- func (x *CanEnterRoomRequest) Reset()
- func (x *CanEnterRoomRequest) String() string
- type CanEnterRoomResponse
- func (*CanEnterRoomResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CanEnterRoomResponse) GetCanEnterRoom() bool
- func (*CanEnterRoomResponse) ProtoMessage()
- func (x *CanEnterRoomResponse) ProtoReflect() protoreflect.Message
- func (x *CanEnterRoomResponse) Reset()
- func (x *CanEnterRoomResponse) String() string
- type CreateRoomRequest
- type CreateRoomResponse
- func (*CreateRoomResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoomResponse) GetRoomId() string
- func (*CreateRoomResponse) ProtoMessage()
- func (x *CreateRoomResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRoomResponse) Reset()
- func (x *CreateRoomResponse) String() string
- type EnterRoomRequest
- func (*EnterRoomRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnterRoomRequest) GetLoginId() string
- func (x *EnterRoomRequest) GetRoomId() string
- func (*EnterRoomRequest) ProtoMessage()
- func (x *EnterRoomRequest) ProtoReflect() protoreflect.Message
- func (x *EnterRoomRequest) Reset()
- func (x *EnterRoomRequest) String() string
- type LeaveRoomRequest
- func (*LeaveRoomRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LeaveRoomRequest) GetLoginId() string
- func (x *LeaveRoomRequest) GetRoomId() string
- func (*LeaveRoomRequest) ProtoMessage()
- func (x *LeaveRoomRequest) ProtoReflect() protoreflect.Message
- func (x *LeaveRoomRequest) Reset()
- func (x *LeaveRoomRequest) String() string
- type Login
- type LoginRequest
- type LoginResponse
- type LogoutRequest
- type NoBody
- type Point
- type PokerSituation
- func (*PokerSituation) Descriptor() ([]byte, []int)deprecated
- func (x *PokerSituation) GetBallots() []*Ballot
- func (x *PokerSituation) GetMasterLoginId() string
- func (x *PokerSituation) GetRoomId() string
- func (x *PokerSituation) GetState() RoomState
- func (*PokerSituation) ProtoMessage()
- func (x *PokerSituation) ProtoReflect() protoreflect.Message
- func (x *PokerSituation) Reset()
- func (x *PokerSituation) String() string
- type PorkerServiceClient
- type PorkerServiceServer
- type PorkerService_EnterRoomClient
- type PorkerService_EnterRoomServer
- type ResetRoomRequest
- func (*ResetRoomRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetRoomRequest) GetLoginId() string
- func (x *ResetRoomRequest) GetRoomId() string
- func (*ResetRoomRequest) ProtoMessage()
- func (x *ResetRoomRequest) ProtoReflect() protoreflect.Message
- func (x *ResetRoomRequest) Reset()
- func (x *ResetRoomRequest) String() string
- type RoomState
- type UnimplementedPorkerServiceServer
- func (UnimplementedPorkerServiceServer) CanEnterRoom(context.Context, *CanEnterRoomRequest) (*CanEnterRoomResponse, error)
- func (UnimplementedPorkerServiceServer) CreateRoom(context.Context, *CreateRoomRequest) (*CreateRoomResponse, error)
- func (UnimplementedPorkerServiceServer) EnterRoom(*EnterRoomRequest, PorkerService_EnterRoomServer) error
- func (UnimplementedPorkerServiceServer) LeaveRoom(context.Context, *LeaveRoomRequest) (*NoBody, error)
- func (UnimplementedPorkerServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedPorkerServiceServer) Logout(context.Context, *LogoutRequest) (*NoBody, error)
- func (UnimplementedPorkerServiceServer) ResetRoom(context.Context, *ResetRoomRequest) (*NoBody, error)
- func (UnimplementedPorkerServiceServer) VoteCounting(context.Context, *VoteCountingRequest) (*NoBody, error)
- func (UnimplementedPorkerServiceServer) Voting(context.Context, *VotingRequest) (*NoBody, error)
- type UnsafePorkerServiceServer
- type Violations
- type VoteCountingRequest
- func (*VoteCountingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VoteCountingRequest) GetLoginId() string
- func (x *VoteCountingRequest) GetRoomId() string
- func (*VoteCountingRequest) ProtoMessage()
- func (x *VoteCountingRequest) ProtoReflect() protoreflect.Message
- func (x *VoteCountingRequest) Reset()
- func (x *VoteCountingRequest) String() string
- type VotingRequest
- func (*VotingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VotingRequest) GetBallot() *Ballot
- func (x *VotingRequest) GetRoomId() string
- func (*VotingRequest) ProtoMessage()
- func (x *VotingRequest) ProtoReflect() protoreflect.Message
- func (x *VotingRequest) Reset()
- func (x *VotingRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Violations_name = map[int32]string{ 0: "UNDEFINED_VIOLATION", } Violations_value = map[string]int32{ "UNDEFINED_VIOLATION": 0, } )
Enum value maps for Violations.
var ( RoomState_name = map[int32]string{ 0: "ROOM_STATE_UNKNOWN", 1: "ROOM_STATE_TURN_DOWN", 2: "ROOM_STATE_OPEN", } RoomState_value = map[string]int32{ "ROOM_STATE_UNKNOWN": 0, "ROOM_STATE_TURN_DOWN": 1, "ROOM_STATE_OPEN": 2, } )
Enum value maps for RoomState.
var ( Point_name = map[int32]string{ 0: "POINT_UNKNOWN", 1: "POINT_0", 2: "POINT_HALF", 3: "POINT_1", 4: "POINT_2", 5: "POINT_3", 6: "POINT_5", 7: "POINT_8", 8: "POINT_13", 9: "POINT_21", 20: "POINT_COFFEE", 21: "POINT_QUESTION", 99: "NOT_VOTE", } Point_value = map[string]int32{ "POINT_UNKNOWN": 0, "POINT_0": 1, "POINT_HALF": 2, "POINT_1": 3, "POINT_2": 4, "POINT_3": 5, "POINT_5": 6, "POINT_8": 7, "POINT_13": 8, "POINT_21": 9, "POINT_COFFEE": 20, "POINT_QUESTION": 21, "NOT_VOTE": 99, } )
Enum value maps for Point.
var File_porker_api_proto protoreflect.FileDescriptor
var File_porker_resource_proto protoreflect.FileDescriptor
var PorkerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "porker.PorkerService", HandlerType: (*PorkerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _PorkerService_Login_Handler, }, { MethodName: "Logout", Handler: _PorkerService_Logout_Handler, }, { MethodName: "CreateRoom", Handler: _PorkerService_CreateRoom_Handler, }, { MethodName: "CanEnterRoom", Handler: _PorkerService_CanEnterRoom_Handler, }, { MethodName: "LeaveRoom", Handler: _PorkerService_LeaveRoom_Handler, }, { MethodName: "Voting", Handler: _PorkerService_Voting_Handler, }, { MethodName: "VoteCounting", Handler: _PorkerService_VoteCounting_Handler, }, { MethodName: "ResetRoom", Handler: _PorkerService_ResetRoom_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "EnterRoom", Handler: _PorkerService_EnterRoom_Handler, ServerStreams: true, }, }, Metadata: "porker/api.proto", }
PorkerService_ServiceDesc is the grpc.ServiceDesc for PorkerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPorkerServiceServer ¶
func RegisterPorkerServiceServer(s grpc.ServiceRegistrar, srv PorkerServiceServer)
Types ¶
type Ballot ¶
type Ballot struct { LoginId string `protobuf:"bytes,1,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` Point Point `protobuf:"varint,2,opt,name=point,proto3,enum=porker.Point" json:"point,omitempty"` // contains filtered or unexported fields }
func (*Ballot) Descriptor
deprecated
func (*Ballot) GetLoginId ¶
func (*Ballot) ProtoMessage ¶
func (*Ballot) ProtoMessage()
func (*Ballot) ProtoReflect ¶
func (x *Ballot) ProtoReflect() protoreflect.Message
type CanEnterRoomRequest ¶
type CanEnterRoomRequest struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` LoginId string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` // contains filtered or unexported fields }
func (*CanEnterRoomRequest) Descriptor
deprecated
func (*CanEnterRoomRequest) Descriptor() ([]byte, []int)
Deprecated: Use CanEnterRoomRequest.ProtoReflect.Descriptor instead.
func (*CanEnterRoomRequest) GetLoginId ¶
func (x *CanEnterRoomRequest) GetLoginId() string
func (*CanEnterRoomRequest) GetRoomId ¶
func (x *CanEnterRoomRequest) GetRoomId() string
func (*CanEnterRoomRequest) ProtoMessage ¶
func (*CanEnterRoomRequest) ProtoMessage()
func (*CanEnterRoomRequest) ProtoReflect ¶
func (x *CanEnterRoomRequest) ProtoReflect() protoreflect.Message
func (*CanEnterRoomRequest) Reset ¶
func (x *CanEnterRoomRequest) Reset()
func (*CanEnterRoomRequest) String ¶
func (x *CanEnterRoomRequest) String() string
type CanEnterRoomResponse ¶
type CanEnterRoomResponse struct { CanEnterRoom bool `protobuf:"varint,1,opt,name=can_enter_room,json=canEnterRoom,proto3" json:"can_enter_room,omitempty"` // contains filtered or unexported fields }
func (*CanEnterRoomResponse) Descriptor
deprecated
func (*CanEnterRoomResponse) Descriptor() ([]byte, []int)
Deprecated: Use CanEnterRoomResponse.ProtoReflect.Descriptor instead.
func (*CanEnterRoomResponse) GetCanEnterRoom ¶
func (x *CanEnterRoomResponse) GetCanEnterRoom() bool
func (*CanEnterRoomResponse) ProtoMessage ¶
func (*CanEnterRoomResponse) ProtoMessage()
func (*CanEnterRoomResponse) ProtoReflect ¶
func (x *CanEnterRoomResponse) ProtoReflect() protoreflect.Message
func (*CanEnterRoomResponse) Reset ¶
func (x *CanEnterRoomResponse) Reset()
func (*CanEnterRoomResponse) String ¶
func (x *CanEnterRoomResponse) String() string
type CreateRoomRequest ¶
type CreateRoomRequest struct { LoginId string `protobuf:"bytes,1,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` // contains filtered or unexported fields }
func (*CreateRoomRequest) Descriptor
deprecated
func (*CreateRoomRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoomRequest.ProtoReflect.Descriptor instead.
func (*CreateRoomRequest) GetLoginId ¶
func (x *CreateRoomRequest) GetLoginId() string
func (*CreateRoomRequest) ProtoMessage ¶
func (*CreateRoomRequest) ProtoMessage()
func (*CreateRoomRequest) ProtoReflect ¶
func (x *CreateRoomRequest) ProtoReflect() protoreflect.Message
func (*CreateRoomRequest) Reset ¶
func (x *CreateRoomRequest) Reset()
func (*CreateRoomRequest) String ¶
func (x *CreateRoomRequest) String() string
type CreateRoomResponse ¶
type CreateRoomResponse struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // contains filtered or unexported fields }
func (*CreateRoomResponse) Descriptor
deprecated
func (*CreateRoomResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoomResponse.ProtoReflect.Descriptor instead.
func (*CreateRoomResponse) GetRoomId ¶
func (x *CreateRoomResponse) GetRoomId() string
func (*CreateRoomResponse) ProtoMessage ¶
func (*CreateRoomResponse) ProtoMessage()
func (*CreateRoomResponse) ProtoReflect ¶
func (x *CreateRoomResponse) ProtoReflect() protoreflect.Message
func (*CreateRoomResponse) Reset ¶
func (x *CreateRoomResponse) Reset()
func (*CreateRoomResponse) String ¶
func (x *CreateRoomResponse) String() string
type EnterRoomRequest ¶
type EnterRoomRequest struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` LoginId string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` // contains filtered or unexported fields }
func (*EnterRoomRequest) Descriptor
deprecated
func (*EnterRoomRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnterRoomRequest.ProtoReflect.Descriptor instead.
func (*EnterRoomRequest) GetLoginId ¶
func (x *EnterRoomRequest) GetLoginId() string
func (*EnterRoomRequest) GetRoomId ¶
func (x *EnterRoomRequest) GetRoomId() string
func (*EnterRoomRequest) ProtoMessage ¶
func (*EnterRoomRequest) ProtoMessage()
func (*EnterRoomRequest) ProtoReflect ¶
func (x *EnterRoomRequest) ProtoReflect() protoreflect.Message
func (*EnterRoomRequest) Reset ¶
func (x *EnterRoomRequest) Reset()
func (*EnterRoomRequest) String ¶
func (x *EnterRoomRequest) String() string
type LeaveRoomRequest ¶
type LeaveRoomRequest struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` LoginId string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` // contains filtered or unexported fields }
func (*LeaveRoomRequest) Descriptor
deprecated
func (*LeaveRoomRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaveRoomRequest.ProtoReflect.Descriptor instead.
func (*LeaveRoomRequest) GetLoginId ¶
func (x *LeaveRoomRequest) GetLoginId() string
func (*LeaveRoomRequest) GetRoomId ¶
func (x *LeaveRoomRequest) GetRoomId() string
func (*LeaveRoomRequest) ProtoMessage ¶
func (*LeaveRoomRequest) ProtoMessage()
func (*LeaveRoomRequest) ProtoReflect ¶
func (x *LeaveRoomRequest) ProtoReflect() protoreflect.Message
func (*LeaveRoomRequest) Reset ¶
func (x *LeaveRoomRequest) Reset()
func (*LeaveRoomRequest) String ¶
func (x *LeaveRoomRequest) String() string
type Login ¶
type Login struct { LoginId string `protobuf:"bytes,1,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*Login) Descriptor
deprecated
func (*Login) GetLoginId ¶
func (*Login) GetSessionId ¶
func (*Login) ProtoMessage ¶
func (*Login) ProtoMessage()
func (*Login) ProtoReflect ¶
func (x *Login) ProtoReflect() protoreflect.Message
type LoginRequest ¶
type LoginRequest struct { Login *Login `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetLogin ¶
func (x *LoginRequest) GetLogin() *Login
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Login *Login `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetLogin ¶
func (x *LoginResponse) GetLogin() *Login
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type LogoutRequest ¶
type LogoutRequest struct { Login *Login `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` // contains filtered or unexported fields }
func (*LogoutRequest) Descriptor
deprecated
func (*LogoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
func (*LogoutRequest) GetLogin ¶
func (x *LogoutRequest) GetLogin() *Login
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) ProtoReflect ¶
func (x *LogoutRequest) ProtoReflect() protoreflect.Message
func (*LogoutRequest) Reset ¶
func (x *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (x *LogoutRequest) String() string
type NoBody ¶
type NoBody struct {
// contains filtered or unexported fields
}
func (*NoBody) Descriptor
deprecated
func (*NoBody) ProtoMessage ¶
func (*NoBody) ProtoMessage()
func (*NoBody) ProtoReflect ¶
func (x *NoBody) ProtoReflect() protoreflect.Message
type Point ¶
type Point int32
const ( Point_POINT_UNKNOWN Point = 0 Point_POINT_0 Point = 1 Point_POINT_HALF Point = 2 Point_POINT_1 Point = 3 Point_POINT_2 Point = 4 Point_POINT_3 Point = 5 Point_POINT_5 Point = 6 Point_POINT_8 Point = 7 Point_POINT_13 Point = 8 Point_POINT_21 Point = 9 Point_POINT_COFFEE Point = 20 Point_POINT_QUESTION Point = 21 Point_NOT_VOTE Point = 99 )
func (Point) Descriptor ¶
func (Point) Descriptor() protoreflect.EnumDescriptor
func (Point) EnumDescriptor
deprecated
func (Point) Number ¶
func (x Point) Number() protoreflect.EnumNumber
func (Point) Type ¶
func (Point) Type() protoreflect.EnumType
type PokerSituation ¶
type PokerSituation struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` MasterLoginId string `protobuf:"bytes,2,opt,name=master_login_id,json=masterLoginId,proto3" json:"master_login_id,omitempty"` State RoomState `protobuf:"varint,3,opt,name=state,proto3,enum=porker.RoomState" json:"state,omitempty"` Ballots []*Ballot `protobuf:"bytes,4,rep,name=ballots,proto3" json:"ballots,omitempty"` // contains filtered or unexported fields }
func (*PokerSituation) Descriptor
deprecated
func (*PokerSituation) Descriptor() ([]byte, []int)
Deprecated: Use PokerSituation.ProtoReflect.Descriptor instead.
func (*PokerSituation) GetBallots ¶
func (x *PokerSituation) GetBallots() []*Ballot
func (*PokerSituation) GetMasterLoginId ¶
func (x *PokerSituation) GetMasterLoginId() string
func (*PokerSituation) GetRoomId ¶
func (x *PokerSituation) GetRoomId() string
func (*PokerSituation) GetState ¶
func (x *PokerSituation) GetState() RoomState
func (*PokerSituation) ProtoMessage ¶
func (*PokerSituation) ProtoMessage()
func (*PokerSituation) ProtoReflect ¶
func (x *PokerSituation) ProtoReflect() protoreflect.Message
func (*PokerSituation) Reset ¶
func (x *PokerSituation) Reset()
func (*PokerSituation) String ¶
func (x *PokerSituation) String() string
type PorkerServiceClient ¶
type PorkerServiceClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*NoBody, error) CreateRoom(ctx context.Context, in *CreateRoomRequest, opts ...grpc.CallOption) (*CreateRoomResponse, error) CanEnterRoom(ctx context.Context, in *CanEnterRoomRequest, opts ...grpc.CallOption) (*CanEnterRoomResponse, error) EnterRoom(ctx context.Context, in *EnterRoomRequest, opts ...grpc.CallOption) (PorkerService_EnterRoomClient, error) LeaveRoom(ctx context.Context, in *LeaveRoomRequest, opts ...grpc.CallOption) (*NoBody, error) Voting(ctx context.Context, in *VotingRequest, opts ...grpc.CallOption) (*NoBody, error) VoteCounting(ctx context.Context, in *VoteCountingRequest, opts ...grpc.CallOption) (*NoBody, error) ResetRoom(ctx context.Context, in *ResetRoomRequest, opts ...grpc.CallOption) (*NoBody, error) }
PorkerServiceClient is the client API for PorkerService 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 NewPorkerServiceClient ¶
func NewPorkerServiceClient(cc grpc.ClientConnInterface) PorkerServiceClient
type PorkerServiceServer ¶
type PorkerServiceServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) Logout(context.Context, *LogoutRequest) (*NoBody, error) CreateRoom(context.Context, *CreateRoomRequest) (*CreateRoomResponse, error) CanEnterRoom(context.Context, *CanEnterRoomRequest) (*CanEnterRoomResponse, error) EnterRoom(*EnterRoomRequest, PorkerService_EnterRoomServer) error LeaveRoom(context.Context, *LeaveRoomRequest) (*NoBody, error) Voting(context.Context, *VotingRequest) (*NoBody, error) VoteCounting(context.Context, *VoteCountingRequest) (*NoBody, error) ResetRoom(context.Context, *ResetRoomRequest) (*NoBody, error) // contains filtered or unexported methods }
PorkerServiceServer is the server API for PorkerService service. All implementations must embed UnimplementedPorkerServiceServer for forward compatibility
type PorkerService_EnterRoomClient ¶
type PorkerService_EnterRoomClient interface { Recv() (*PokerSituation, error) grpc.ClientStream }
type PorkerService_EnterRoomServer ¶
type PorkerService_EnterRoomServer interface { Send(*PokerSituation) error grpc.ServerStream }
type ResetRoomRequest ¶
type ResetRoomRequest struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` LoginId string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` // contains filtered or unexported fields }
func (*ResetRoomRequest) Descriptor
deprecated
func (*ResetRoomRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetRoomRequest.ProtoReflect.Descriptor instead.
func (*ResetRoomRequest) GetLoginId ¶
func (x *ResetRoomRequest) GetLoginId() string
func (*ResetRoomRequest) GetRoomId ¶
func (x *ResetRoomRequest) GetRoomId() string
func (*ResetRoomRequest) ProtoMessage ¶
func (*ResetRoomRequest) ProtoMessage()
func (*ResetRoomRequest) ProtoReflect ¶
func (x *ResetRoomRequest) ProtoReflect() protoreflect.Message
func (*ResetRoomRequest) Reset ¶
func (x *ResetRoomRequest) Reset()
func (*ResetRoomRequest) String ¶
func (x *ResetRoomRequest) String() string
type RoomState ¶
type RoomState int32
func (RoomState) Descriptor ¶
func (RoomState) Descriptor() protoreflect.EnumDescriptor
func (RoomState) EnumDescriptor
deprecated
func (RoomState) Number ¶
func (x RoomState) Number() protoreflect.EnumNumber
func (RoomState) Type ¶
func (RoomState) Type() protoreflect.EnumType
type UnimplementedPorkerServiceServer ¶
type UnimplementedPorkerServiceServer struct { }
UnimplementedPorkerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPorkerServiceServer) CanEnterRoom ¶
func (UnimplementedPorkerServiceServer) CanEnterRoom(context.Context, *CanEnterRoomRequest) (*CanEnterRoomResponse, error)
func (UnimplementedPorkerServiceServer) CreateRoom ¶
func (UnimplementedPorkerServiceServer) CreateRoom(context.Context, *CreateRoomRequest) (*CreateRoomResponse, error)
func (UnimplementedPorkerServiceServer) EnterRoom ¶
func (UnimplementedPorkerServiceServer) EnterRoom(*EnterRoomRequest, PorkerService_EnterRoomServer) error
func (UnimplementedPorkerServiceServer) LeaveRoom ¶
func (UnimplementedPorkerServiceServer) LeaveRoom(context.Context, *LeaveRoomRequest) (*NoBody, error)
func (UnimplementedPorkerServiceServer) Login ¶
func (UnimplementedPorkerServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedPorkerServiceServer) Logout ¶
func (UnimplementedPorkerServiceServer) Logout(context.Context, *LogoutRequest) (*NoBody, error)
func (UnimplementedPorkerServiceServer) ResetRoom ¶
func (UnimplementedPorkerServiceServer) ResetRoom(context.Context, *ResetRoomRequest) (*NoBody, error)
func (UnimplementedPorkerServiceServer) VoteCounting ¶
func (UnimplementedPorkerServiceServer) VoteCounting(context.Context, *VoteCountingRequest) (*NoBody, error)
func (UnimplementedPorkerServiceServer) Voting ¶
func (UnimplementedPorkerServiceServer) Voting(context.Context, *VotingRequest) (*NoBody, error)
type UnsafePorkerServiceServer ¶
type UnsafePorkerServiceServer interface {
// contains filtered or unexported methods
}
UnsafePorkerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PorkerServiceServer will result in compilation errors.
type Violations ¶
type Violations int32
const (
Violations_UNDEFINED_VIOLATION Violations = 0
)
func (Violations) Descriptor ¶
func (Violations) Descriptor() protoreflect.EnumDescriptor
func (Violations) Enum ¶
func (x Violations) Enum() *Violations
func (Violations) EnumDescriptor
deprecated
func (Violations) EnumDescriptor() ([]byte, []int)
Deprecated: Use Violations.Descriptor instead.
func (Violations) Number ¶
func (x Violations) Number() protoreflect.EnumNumber
func (Violations) String ¶
func (x Violations) String() string
func (Violations) Type ¶
func (Violations) Type() protoreflect.EnumType
type VoteCountingRequest ¶
type VoteCountingRequest struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` LoginId string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` // contains filtered or unexported fields }
func (*VoteCountingRequest) Descriptor
deprecated
func (*VoteCountingRequest) Descriptor() ([]byte, []int)
Deprecated: Use VoteCountingRequest.ProtoReflect.Descriptor instead.
func (*VoteCountingRequest) GetLoginId ¶
func (x *VoteCountingRequest) GetLoginId() string
func (*VoteCountingRequest) GetRoomId ¶
func (x *VoteCountingRequest) GetRoomId() string
func (*VoteCountingRequest) ProtoMessage ¶
func (*VoteCountingRequest) ProtoMessage()
func (*VoteCountingRequest) ProtoReflect ¶
func (x *VoteCountingRequest) ProtoReflect() protoreflect.Message
func (*VoteCountingRequest) Reset ¶
func (x *VoteCountingRequest) Reset()
func (*VoteCountingRequest) String ¶
func (x *VoteCountingRequest) String() string
type VotingRequest ¶
type VotingRequest struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` Ballot *Ballot `protobuf:"bytes,2,opt,name=ballot,proto3" json:"ballot,omitempty"` // contains filtered or unexported fields }
func (*VotingRequest) Descriptor
deprecated
func (*VotingRequest) Descriptor() ([]byte, []int)
Deprecated: Use VotingRequest.ProtoReflect.Descriptor instead.
func (*VotingRequest) GetBallot ¶
func (x *VotingRequest) GetBallot() *Ballot
func (*VotingRequest) GetRoomId ¶
func (x *VotingRequest) GetRoomId() string
func (*VotingRequest) ProtoMessage ¶
func (*VotingRequest) ProtoMessage()
func (*VotingRequest) ProtoReflect ¶
func (x *VotingRequest) ProtoReflect() protoreflect.Message
func (*VotingRequest) Reset ¶
func (x *VotingRequest) Reset()
func (*VotingRequest) String ¶
func (x *VotingRequest) String() string