Documentation ¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterPartyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPartyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PartyServiceClient) error
- func RegisterPartyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPartyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PartyServiceServer) error
- func RegisterPartyServiceServer(s grpc.ServiceRegistrar, srv PartyServiceServer)
- type GetPartyRequest
- func (*GetPartyRequest) Descriptor() ([]byte, []int)deprecated
- func (m *GetPartyRequest) GetKind() isGetPartyRequest_Kind
- func (x *GetPartyRequest) GetPid() string
- func (x *GetPartyRequest) GetUid() string
- func (*GetPartyRequest) ProtoMessage()
- func (x *GetPartyRequest) ProtoReflect() protoreflect.Message
- func (x *GetPartyRequest) Reset()
- func (x *GetPartyRequest) String() string
- type GetPartyRequest_Pid
- type GetPartyRequest_Uid
- type GetPartyResponse
- type InviteJoinRequest
- func (*InviteJoinRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InviteJoinRequest) GetInviterId() string
- func (x *InviteJoinRequest) GetPlayerId() string
- func (*InviteJoinRequest) ProtoMessage()
- func (x *InviteJoinRequest) ProtoReflect() protoreflect.Message
- func (x *InviteJoinRequest) Reset()
- func (x *InviteJoinRequest) String() string
- type InviteJoinResponse
- func (*InviteJoinResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InviteJoinResponse) GetReplayCode() int32
- func (*InviteJoinResponse) ProtoMessage()
- func (x *InviteJoinResponse) ProtoReflect() protoreflect.Message
- func (x *InviteJoinResponse) Reset()
- func (x *InviteJoinResponse) String() string
- type InviteReplayRequest
- func (*InviteReplayRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InviteReplayRequest) GetPartyId() string
- func (x *InviteReplayRequest) GetReplayCode() int32
- func (*InviteReplayRequest) ProtoMessage()
- func (x *InviteReplayRequest) ProtoReflect() protoreflect.Message
- func (x *InviteReplayRequest) Reset()
- func (x *InviteReplayRequest) String() string
- type InviteReplayResponse
- type JoinPartyReplyRequest
- func (*JoinPartyReplyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *JoinPartyReplyRequest) GetPartyId() string
- func (x *JoinPartyReplyRequest) GetPlayerId() string
- func (x *JoinPartyReplyRequest) GetReplyCode() int32
- func (*JoinPartyReplyRequest) ProtoMessage()
- func (x *JoinPartyReplyRequest) ProtoReflect() protoreflect.Message
- func (x *JoinPartyReplyRequest) Reset()
- func (x *JoinPartyReplyRequest) String() string
- type JoinPartyReplyResponse
- type JoinPartyRequest
- func (*JoinPartyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *JoinPartyRequest) GetId() string
- func (x *JoinPartyRequest) GetIsCreate() bool
- func (x *JoinPartyRequest) GetIsPublish() bool
- func (x *JoinPartyRequest) GetMember() *Member
- func (x *JoinPartyRequest) GetParty() *PartySetting
- func (*JoinPartyRequest) ProtoMessage()
- func (x *JoinPartyRequest) ProtoReflect() protoreflect.Message
- func (x *JoinPartyRequest) Reset()
- func (x *JoinPartyRequest) String() string
- type JoinPartyResponse
- type KickOutRequest
- func (*KickOutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KickOutRequest) GetPartyId() string
- func (x *KickOutRequest) GetUid() string
- func (*KickOutRequest) ProtoMessage()
- func (x *KickOutRequest) ProtoReflect() protoreflect.Message
- func (x *KickOutRequest) Reset()
- func (x *KickOutRequest) String() string
- type KickOutResponse
- type LeavePartyRequest
- type LeavePartyResponse
- func (*LeavePartyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LeavePartyResponse) GetIds() []string
- func (*LeavePartyResponse) ProtoMessage()
- func (x *LeavePartyResponse) ProtoReflect() protoreflect.Message
- func (x *LeavePartyResponse) Reset()
- func (x *LeavePartyResponse) String() string
- type ManagePartyRequest
- func (*ManagePartyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ManagePartyRequest) GetParty() *PartySetting
- func (*ManagePartyRequest) ProtoMessage()
- func (x *ManagePartyRequest) ProtoReflect() protoreflect.Message
- func (x *ManagePartyRequest) Reset()
- func (x *ManagePartyRequest) String() string
- type ManagePartyResponse
- type Member
- func (*Member) Descriptor() ([]byte, []int)deprecated
- func (x *Member) GetAvatar() string
- func (x *Member) GetHeroId() int32
- func (x *Member) GetIsLeave() bool
- func (x *Member) GetIsOffline() bool
- func (x *Member) GetLeaveReason() int32
- func (x *Member) GetNickname() string
- func (x *Member) GetStatus() int32
- func (x *Member) GetUid() string
- func (*Member) ProtoMessage()
- func (x *Member) ProtoReflect() protoreflect.Message
- func (x *Member) Reset()
- func (x *Member) String() string
- type PartyInfo
- func (*PartyInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PartyInfo) GetMembers() map[string]*Member
- func (x *PartyInfo) GetParty() *PartySetting
- func (*PartyInfo) ProtoMessage()
- func (x *PartyInfo) ProtoReflect() protoreflect.Message
- func (x *PartyInfo) Reset()
- func (x *PartyInfo) String() string
- type PartyServiceClient
- type PartyServiceServer
- type PartyService_JoinPartyClient
- type PartyService_JoinPartyServer
- type PartySetting
- func (*PartySetting) Descriptor() ([]byte, []int)deprecated
- func (x *PartySetting) GetId() string
- func (x *PartySetting) GetMaxMember() int32
- func (x *PartySetting) GetName() string
- func (x *PartySetting) GetOwner() string
- func (x *PartySetting) GetRefuse() map[string]int64
- func (x *PartySetting) GetType() int32
- func (*PartySetting) ProtoMessage()
- func (x *PartySetting) ProtoReflect() protoreflect.Message
- func (x *PartySetting) Reset()
- func (x *PartySetting) String() string
- type UnimplementedPartyServiceServer
- func (UnimplementedPartyServiceServer) GetParty(context.Context, *GetPartyRequest) (*GetPartyResponse, error)
- func (UnimplementedPartyServiceServer) InviteJoinParty(context.Context, *InviteJoinRequest) (*InviteJoinResponse, error)
- func (UnimplementedPartyServiceServer) InviteJoinReplay(context.Context, *InviteReplayRequest) (*InviteReplayResponse, error)
- func (UnimplementedPartyServiceServer) JoinParty(*JoinPartyRequest, PartyService_JoinPartyServer) error
- func (UnimplementedPartyServiceServer) JoinPartyReply(context.Context, *JoinPartyReplyRequest) (*JoinPartyReplyResponse, error)
- func (UnimplementedPartyServiceServer) KickOut(context.Context, *KickOutRequest) (*KickOutResponse, error)
- func (UnimplementedPartyServiceServer) LeaveParty(context.Context, *LeavePartyRequest) (*LeavePartyResponse, error)
- func (UnimplementedPartyServiceServer) ManageParty(context.Context, *ManagePartyRequest) (*ManagePartyResponse, error)
- func (UnimplementedPartyServiceServer) UpdateMember(context.Context, *UpdateMemberRequest) (*UpdateMemberResponse, error)
- type UnsafePartyServiceServer
- type UpdateMemberRequest
- func (*UpdateMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMemberRequest) GetMember() *Member
- func (x *UpdateMemberRequest) GetPartyId() string
- func (*UpdateMemberRequest) ProtoMessage()
- func (x *UpdateMemberRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMemberRequest) Reset()
- func (x *UpdateMemberRequest) String() string
- type UpdateMemberResponse
Constants ¶
const ( PartyService_GetParty_FullMethodName = "/party.pb.PartyService/GetParty" PartyService_JoinParty_FullMethodName = "/party.pb.PartyService/JoinParty" PartyService_JoinPartyReply_FullMethodName = "/party.pb.PartyService/JoinPartyReply" PartyService_LeaveParty_FullMethodName = "/party.pb.PartyService/LeaveParty" PartyService_KickOut_FullMethodName = "/party.pb.PartyService/KickOut" PartyService_ManageParty_FullMethodName = "/party.pb.PartyService/ManageParty" PartyService_UpdateMember_FullMethodName = "/party.pb.PartyService/UpdateMember" PartyService_InviteJoinParty_FullMethodName = "/party.pb.PartyService/InviteJoinParty" PartyService_InviteJoinReplay_FullMethodName = "/party.pb.PartyService/InviteJoinReplay" )
Variables ¶
var File_party_party_proto protoreflect.FileDescriptor
var PartyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "party.pb.PartyService", HandlerType: (*PartyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetParty", Handler: _PartyService_GetParty_Handler, }, { MethodName: "JoinPartyReply", Handler: _PartyService_JoinPartyReply_Handler, }, { MethodName: "LeaveParty", Handler: _PartyService_LeaveParty_Handler, }, { MethodName: "KickOut", Handler: _PartyService_KickOut_Handler, }, { MethodName: "ManageParty", Handler: _PartyService_ManageParty_Handler, }, { MethodName: "UpdateMember", Handler: _PartyService_UpdateMember_Handler, }, { MethodName: "InviteJoinParty", Handler: _PartyService_InviteJoinParty_Handler, }, { MethodName: "InviteJoinReplay", Handler: _PartyService_InviteJoinReplay_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "JoinParty", Handler: _PartyService_JoinParty_Handler, ServerStreams: true, }, }, Metadata: "party/party.proto", }
PartyService_ServiceDesc is the grpc.ServiceDesc for PartyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPartyServiceHandler ¶
func RegisterPartyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPartyServiceHandler registers the http handlers for service PartyService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPartyServiceHandlerClient ¶
func RegisterPartyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PartyServiceClient) error
RegisterPartyServiceHandlerClient registers the http handlers for service PartyService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PartyServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PartyServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PartyServiceClient" to call the correct interceptors.
func RegisterPartyServiceHandlerFromEndpoint ¶
func RegisterPartyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPartyServiceHandlerFromEndpoint is same as RegisterPartyServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPartyServiceHandlerServer ¶
func RegisterPartyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PartyServiceServer) error
RegisterPartyServiceHandlerServer registers the http handlers for service PartyService to "mux". UnaryRPC :call PartyServiceServer 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 RegisterPartyServiceHandlerFromEndpoint instead.
func RegisterPartyServiceServer ¶
func RegisterPartyServiceServer(s grpc.ServiceRegistrar, srv PartyServiceServer)
Types ¶
type GetPartyRequest ¶
type GetPartyRequest struct { // Types that are assignable to Kind: // // *GetPartyRequest_Pid // *GetPartyRequest_Uid Kind isGetPartyRequest_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
get party info
func (*GetPartyRequest) Descriptor
deprecated
func (*GetPartyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPartyRequest.ProtoReflect.Descriptor instead.
func (*GetPartyRequest) GetKind ¶
func (m *GetPartyRequest) GetKind() isGetPartyRequest_Kind
func (*GetPartyRequest) GetPid ¶
func (x *GetPartyRequest) GetPid() string
func (*GetPartyRequest) GetUid ¶
func (x *GetPartyRequest) GetUid() string
func (*GetPartyRequest) ProtoMessage ¶
func (*GetPartyRequest) ProtoMessage()
func (*GetPartyRequest) ProtoReflect ¶
func (x *GetPartyRequest) ProtoReflect() protoreflect.Message
func (*GetPartyRequest) Reset ¶
func (x *GetPartyRequest) Reset()
func (*GetPartyRequest) String ¶
func (x *GetPartyRequest) String() string
type GetPartyRequest_Pid ¶
type GetPartyRequest_Pid struct {
Pid string `protobuf:"bytes,1,opt,name=pid,proto3,oneof"` // party id
}
type GetPartyRequest_Uid ¶
type GetPartyRequest_Uid struct {
Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"` // player uid
}
type GetPartyResponse ¶
type GetPartyResponse struct { Party *PartyInfo `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` // party info // contains filtered or unexported fields }
func (*GetPartyResponse) Descriptor
deprecated
func (*GetPartyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPartyResponse.ProtoReflect.Descriptor instead.
func (*GetPartyResponse) GetParty ¶
func (x *GetPartyResponse) GetParty() *PartyInfo
func (*GetPartyResponse) ProtoMessage ¶
func (*GetPartyResponse) ProtoMessage()
func (*GetPartyResponse) ProtoReflect ¶
func (x *GetPartyResponse) ProtoReflect() protoreflect.Message
func (*GetPartyResponse) Reset ¶
func (x *GetPartyResponse) Reset()
func (*GetPartyResponse) String ¶
func (x *GetPartyResponse) String() string
type InviteJoinRequest ¶
type InviteJoinRequest struct { InviterId string `protobuf:"bytes,1,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` //inviter id PlayerId string `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"` // invitee id // contains filtered or unexported fields }
func (*InviteJoinRequest) Descriptor
deprecated
func (*InviteJoinRequest) Descriptor() ([]byte, []int)
Deprecated: Use InviteJoinRequest.ProtoReflect.Descriptor instead.
func (*InviteJoinRequest) GetInviterId ¶
func (x *InviteJoinRequest) GetInviterId() string
func (*InviteJoinRequest) GetPlayerId ¶
func (x *InviteJoinRequest) GetPlayerId() string
func (*InviteJoinRequest) ProtoMessage ¶
func (*InviteJoinRequest) ProtoMessage()
func (*InviteJoinRequest) ProtoReflect ¶
func (x *InviteJoinRequest) ProtoReflect() protoreflect.Message
func (*InviteJoinRequest) Reset ¶
func (x *InviteJoinRequest) Reset()
func (*InviteJoinRequest) String ¶
func (x *InviteJoinRequest) String() string
type InviteJoinResponse ¶
type InviteJoinResponse struct { ReplayCode int32 `protobuf:"varint,1,opt,name=replay_code,json=replayCode,proto3" json:"replay_code,omitempty"` //0=邀请成功 1=同意 2=拒绝 3=一定时间内拒绝再次申请 4=对方被其他队伍邀请中 // contains filtered or unexported fields }
func (*InviteJoinResponse) Descriptor
deprecated
func (*InviteJoinResponse) Descriptor() ([]byte, []int)
Deprecated: Use InviteJoinResponse.ProtoReflect.Descriptor instead.
func (*InviteJoinResponse) GetReplayCode ¶
func (x *InviteJoinResponse) GetReplayCode() int32
func (*InviteJoinResponse) ProtoMessage ¶
func (*InviteJoinResponse) ProtoMessage()
func (*InviteJoinResponse) ProtoReflect ¶
func (x *InviteJoinResponse) ProtoReflect() protoreflect.Message
func (*InviteJoinResponse) Reset ¶
func (x *InviteJoinResponse) Reset()
func (*InviteJoinResponse) String ¶
func (x *InviteJoinResponse) String() string
type InviteReplayRequest ¶
type InviteReplayRequest struct { ReplayCode int32 `protobuf:"varint,1,opt,name=replay_code,json=replayCode,proto3" json:"replay_code,omitempty"` //1=同意 2=拒绝 3=一定时间内拒绝再次被邀请 PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` // 房间id // contains filtered or unexported fields }
func (*InviteReplayRequest) Descriptor
deprecated
func (*InviteReplayRequest) Descriptor() ([]byte, []int)
Deprecated: Use InviteReplayRequest.ProtoReflect.Descriptor instead.
func (*InviteReplayRequest) GetPartyId ¶
func (x *InviteReplayRequest) GetPartyId() string
func (*InviteReplayRequest) GetReplayCode ¶
func (x *InviteReplayRequest) GetReplayCode() int32
func (*InviteReplayRequest) ProtoMessage ¶
func (*InviteReplayRequest) ProtoMessage()
func (*InviteReplayRequest) ProtoReflect ¶
func (x *InviteReplayRequest) ProtoReflect() protoreflect.Message
func (*InviteReplayRequest) Reset ¶
func (x *InviteReplayRequest) Reset()
func (*InviteReplayRequest) String ¶
func (x *InviteReplayRequest) String() string
type InviteReplayResponse ¶
type InviteReplayResponse struct {
// contains filtered or unexported fields
}
func (*InviteReplayResponse) Descriptor
deprecated
func (*InviteReplayResponse) Descriptor() ([]byte, []int)
Deprecated: Use InviteReplayResponse.ProtoReflect.Descriptor instead.
func (*InviteReplayResponse) ProtoMessage ¶
func (*InviteReplayResponse) ProtoMessage()
func (*InviteReplayResponse) ProtoReflect ¶
func (x *InviteReplayResponse) ProtoReflect() protoreflect.Message
func (*InviteReplayResponse) Reset ¶
func (x *InviteReplayResponse) Reset()
func (*InviteReplayResponse) String ¶
func (x *InviteReplayResponse) String() string
type JoinPartyReplyRequest ¶
type JoinPartyReplyRequest struct { PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` PlayerId string `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"` ReplyCode int32 `protobuf:"varint,3,opt,name=reply_code,json=replyCode,proto3" json:"reply_code,omitempty"` //3=拒绝五分钟内再次申请 // contains filtered or unexported fields }
func (*JoinPartyReplyRequest) Descriptor
deprecated
func (*JoinPartyReplyRequest) Descriptor() ([]byte, []int)
Deprecated: Use JoinPartyReplyRequest.ProtoReflect.Descriptor instead.
func (*JoinPartyReplyRequest) GetPartyId ¶
func (x *JoinPartyReplyRequest) GetPartyId() string
func (*JoinPartyReplyRequest) GetPlayerId ¶
func (x *JoinPartyReplyRequest) GetPlayerId() string
func (*JoinPartyReplyRequest) GetReplyCode ¶
func (x *JoinPartyReplyRequest) GetReplyCode() int32
func (*JoinPartyReplyRequest) ProtoMessage ¶
func (*JoinPartyReplyRequest) ProtoMessage()
func (*JoinPartyReplyRequest) ProtoReflect ¶
func (x *JoinPartyReplyRequest) ProtoReflect() protoreflect.Message
func (*JoinPartyReplyRequest) Reset ¶
func (x *JoinPartyReplyRequest) Reset()
func (*JoinPartyReplyRequest) String ¶
func (x *JoinPartyReplyRequest) String() string
type JoinPartyReplyResponse ¶
type JoinPartyReplyResponse struct {
// contains filtered or unexported fields
}
func (*JoinPartyReplyResponse) Descriptor
deprecated
func (*JoinPartyReplyResponse) Descriptor() ([]byte, []int)
Deprecated: Use JoinPartyReplyResponse.ProtoReflect.Descriptor instead.
func (*JoinPartyReplyResponse) ProtoMessage ¶
func (*JoinPartyReplyResponse) ProtoMessage()
func (*JoinPartyReplyResponse) ProtoReflect ¶
func (x *JoinPartyReplyResponse) ProtoReflect() protoreflect.Message
func (*JoinPartyReplyResponse) Reset ¶
func (x *JoinPartyReplyResponse) Reset()
func (*JoinPartyReplyResponse) String ¶
func (x *JoinPartyReplyResponse) String() string
type JoinPartyRequest ¶
type JoinPartyRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // party id required (if is_create is true, id is not required) Party *PartySetting `protobuf:"bytes,2,opt,name=party,proto3" json:"party,omitempty"` // party info (if is_create is true, party info is required) Member *Member `protobuf:"bytes,3,opt,name=member,proto3" json:"member,omitempty"` // member info required IsCreate bool `protobuf:"varint,4,opt,name=is_create,json=isCreate,proto3" json:"is_create,omitempty"` // is create party IsPublish bool `protobuf:"varint,5,opt,name=is_publish,json=isPublish,proto3" json:"is_publish,omitempty"` //is publish party // contains filtered or unexported fields }
func (*JoinPartyRequest) Descriptor
deprecated
func (*JoinPartyRequest) Descriptor() ([]byte, []int)
Deprecated: Use JoinPartyRequest.ProtoReflect.Descriptor instead.
func (*JoinPartyRequest) GetId ¶
func (x *JoinPartyRequest) GetId() string
func (*JoinPartyRequest) GetIsCreate ¶
func (x *JoinPartyRequest) GetIsCreate() bool
func (*JoinPartyRequest) GetIsPublish ¶
func (x *JoinPartyRequest) GetIsPublish() bool
func (*JoinPartyRequest) GetMember ¶
func (x *JoinPartyRequest) GetMember() *Member
func (*JoinPartyRequest) GetParty ¶
func (x *JoinPartyRequest) GetParty() *PartySetting
func (*JoinPartyRequest) ProtoMessage ¶
func (*JoinPartyRequest) ProtoMessage()
func (*JoinPartyRequest) ProtoReflect ¶
func (x *JoinPartyRequest) ProtoReflect() protoreflect.Message
func (*JoinPartyRequest) Reset ¶
func (x *JoinPartyRequest) Reset()
func (*JoinPartyRequest) String ¶
func (x *JoinPartyRequest) String() string
type JoinPartyResponse ¶
type JoinPartyResponse struct { Party *PartyInfo `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` // party info // contains filtered or unexported fields }
if join/create party success, server will notice changes by this response
func (*JoinPartyResponse) Descriptor
deprecated
func (*JoinPartyResponse) Descriptor() ([]byte, []int)
Deprecated: Use JoinPartyResponse.ProtoReflect.Descriptor instead.
func (*JoinPartyResponse) GetParty ¶
func (x *JoinPartyResponse) GetParty() *PartyInfo
func (*JoinPartyResponse) ProtoMessage ¶
func (*JoinPartyResponse) ProtoMessage()
func (*JoinPartyResponse) ProtoReflect ¶
func (x *JoinPartyResponse) ProtoReflect() protoreflect.Message
func (*JoinPartyResponse) Reset ¶
func (x *JoinPartyResponse) Reset()
func (*JoinPartyResponse) String ¶
func (x *JoinPartyResponse) String() string
type KickOutRequest ¶
type KickOutRequest struct { PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` // party id Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // uid // contains filtered or unexported fields }
func (*KickOutRequest) Descriptor
deprecated
func (*KickOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use KickOutRequest.ProtoReflect.Descriptor instead.
func (*KickOutRequest) GetPartyId ¶
func (x *KickOutRequest) GetPartyId() string
func (*KickOutRequest) GetUid ¶
func (x *KickOutRequest) GetUid() string
func (*KickOutRequest) ProtoMessage ¶
func (*KickOutRequest) ProtoMessage()
func (*KickOutRequest) ProtoReflect ¶
func (x *KickOutRequest) ProtoReflect() protoreflect.Message
func (*KickOutRequest) Reset ¶
func (x *KickOutRequest) Reset()
func (*KickOutRequest) String ¶
func (x *KickOutRequest) String() string
type KickOutResponse ¶
type KickOutResponse struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` //原本的队伍成员ID // contains filtered or unexported fields }
func (*KickOutResponse) Descriptor
deprecated
func (*KickOutResponse) Descriptor() ([]byte, []int)
Deprecated: Use KickOutResponse.ProtoReflect.Descriptor instead.
func (*KickOutResponse) GetIds ¶
func (x *KickOutResponse) GetIds() []string
func (*KickOutResponse) ProtoMessage ¶
func (*KickOutResponse) ProtoMessage()
func (*KickOutResponse) ProtoReflect ¶
func (x *KickOutResponse) ProtoReflect() protoreflect.Message
func (*KickOutResponse) Reset ¶
func (x *KickOutResponse) Reset()
func (*KickOutResponse) String ¶
func (x *KickOutResponse) String() string
type LeavePartyRequest ¶
type LeavePartyRequest struct {
// contains filtered or unexported fields
}
func (*LeavePartyRequest) Descriptor
deprecated
func (*LeavePartyRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeavePartyRequest.ProtoReflect.Descriptor instead.
func (*LeavePartyRequest) ProtoMessage ¶
func (*LeavePartyRequest) ProtoMessage()
func (*LeavePartyRequest) ProtoReflect ¶
func (x *LeavePartyRequest) ProtoReflect() protoreflect.Message
func (*LeavePartyRequest) Reset ¶
func (x *LeavePartyRequest) Reset()
func (*LeavePartyRequest) String ¶
func (x *LeavePartyRequest) String() string
type LeavePartyResponse ¶
type LeavePartyResponse struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` //原本的队伍成员ID // contains filtered or unexported fields }
func (*LeavePartyResponse) Descriptor
deprecated
func (*LeavePartyResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeavePartyResponse.ProtoReflect.Descriptor instead.
func (*LeavePartyResponse) GetIds ¶
func (x *LeavePartyResponse) GetIds() []string
func (*LeavePartyResponse) ProtoMessage ¶
func (*LeavePartyResponse) ProtoMessage()
func (*LeavePartyResponse) ProtoReflect ¶
func (x *LeavePartyResponse) ProtoReflect() protoreflect.Message
func (*LeavePartyResponse) Reset ¶
func (x *LeavePartyResponse) Reset()
func (*LeavePartyResponse) String ¶
func (x *LeavePartyResponse) String() string
type ManagePartyRequest ¶
type ManagePartyRequest struct { Party *PartySetting `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` // party info // contains filtered or unexported fields }
func (*ManagePartyRequest) Descriptor
deprecated
func (*ManagePartyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ManagePartyRequest.ProtoReflect.Descriptor instead.
func (*ManagePartyRequest) GetParty ¶
func (x *ManagePartyRequest) GetParty() *PartySetting
func (*ManagePartyRequest) ProtoMessage ¶
func (*ManagePartyRequest) ProtoMessage()
func (*ManagePartyRequest) ProtoReflect ¶
func (x *ManagePartyRequest) ProtoReflect() protoreflect.Message
func (*ManagePartyRequest) Reset ¶
func (x *ManagePartyRequest) Reset()
func (*ManagePartyRequest) String ¶
func (x *ManagePartyRequest) String() string
type ManagePartyResponse ¶
type ManagePartyResponse struct {
// contains filtered or unexported fields
}
func (*ManagePartyResponse) Descriptor
deprecated
func (*ManagePartyResponse) Descriptor() ([]byte, []int)
Deprecated: Use ManagePartyResponse.ProtoReflect.Descriptor instead.
func (*ManagePartyResponse) ProtoMessage ¶
func (*ManagePartyResponse) ProtoMessage()
func (*ManagePartyResponse) ProtoReflect ¶
func (x *ManagePartyResponse) ProtoReflect() protoreflect.Message
func (*ManagePartyResponse) Reset ¶
func (x *ManagePartyResponse) Reset()
func (*ManagePartyResponse) String ¶
func (x *ManagePartyResponse) String() string
type Member ¶
type Member struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // uid Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // nickname Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` // avatar HeroId int32 `protobuf:"varint,4,opt,name=hero_id,json=heroId,proto3" json:"hero_id,omitempty"` // hero id Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // status can not be 0, 0 is default value IsOffline bool `protobuf:"varint,6,opt,name=is_offline,json=isOffline,proto3" json:"is_offline,omitempty"` // is offline IsLeave bool `protobuf:"varint,7,opt,name=is_leave,json=isLeave,proto3" json:"is_leave,omitempty"` // be kicked out LeaveReason int32 `protobuf:"varint,8,opt,name=leave_reason,json=leaveReason,proto3" json:"leave_reason,omitempty"` // leave reason (1:leave, 2:kick out) // contains filtered or unexported fields }
func (*Member) Descriptor
deprecated
func (*Member) GetIsLeave ¶
func (*Member) GetIsOffline ¶
func (*Member) GetLeaveReason ¶
func (*Member) GetNickname ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) ProtoReflect ¶
func (x *Member) ProtoReflect() protoreflect.Message
type PartyInfo ¶
type PartyInfo struct { Party *PartySetting `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` // party setting Members map[string]*Member `` // members /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PartyInfo) Descriptor
deprecated
func (*PartyInfo) GetMembers ¶
func (*PartyInfo) GetParty ¶
func (x *PartyInfo) GetParty() *PartySetting
func (*PartyInfo) ProtoMessage ¶
func (*PartyInfo) ProtoMessage()
func (*PartyInfo) ProtoReflect ¶
func (x *PartyInfo) ProtoReflect() protoreflect.Message
type PartyServiceClient ¶
type PartyServiceClient interface { // GetParty get party info // 获取当前队伍信息 GetParty(ctx context.Context, in *GetPartyRequest, opts ...grpc.CallOption) (*GetPartyResponse, error) // JoinParty join party // 加入队伍 JoinParty(ctx context.Context, in *JoinPartyRequest, opts ...grpc.CallOption) (PartyService_JoinPartyClient, error) // JoinPartyReply join party reply // 加入队伍回复 JoinPartyReply(ctx context.Context, in *JoinPartyReplyRequest, opts ...grpc.CallOption) (*JoinPartyReplyResponse, error) // LeaveParty leave party // 离开队伍 LeaveParty(ctx context.Context, in *LeavePartyRequest, opts ...grpc.CallOption) (*LeavePartyResponse, error) // KickOut kick out member // 踢出队伍 KickOut(ctx context.Context, in *KickOutRequest, opts ...grpc.CallOption) (*KickOutResponse, error) // ManageParty manage party // 管理队伍 ManageParty(ctx context.Context, in *ManagePartyRequest, opts ...grpc.CallOption) (*ManagePartyResponse, error) // UpdateMember update member // 队伍成员更新信息 UpdateMember(ctx context.Context, in *UpdateMemberRequest, opts ...grpc.CallOption) (*UpdateMemberResponse, error) // InviteJoin invite join party // 邀请加入队伍 InviteJoinParty(ctx context.Context, in *InviteJoinRequest, opts ...grpc.CallOption) (*InviteJoinResponse, error) // InviteJoinReplay invite join party replay // 邀请加入队伍回复 InviteJoinReplay(ctx context.Context, in *InviteReplayRequest, opts ...grpc.CallOption) (*InviteReplayResponse, error) }
PartyServiceClient is the client API for PartyService 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.
PartyService is a service for party 组队服务
func NewPartyServiceClient ¶
func NewPartyServiceClient(cc grpc.ClientConnInterface) PartyServiceClient
type PartyServiceServer ¶
type PartyServiceServer interface { // GetParty get party info // 获取当前队伍信息 GetParty(context.Context, *GetPartyRequest) (*GetPartyResponse, error) // JoinParty join party // 加入队伍 JoinParty(*JoinPartyRequest, PartyService_JoinPartyServer) error // JoinPartyReply join party reply // 加入队伍回复 JoinPartyReply(context.Context, *JoinPartyReplyRequest) (*JoinPartyReplyResponse, error) // LeaveParty leave party // 离开队伍 LeaveParty(context.Context, *LeavePartyRequest) (*LeavePartyResponse, error) // KickOut kick out member // 踢出队伍 KickOut(context.Context, *KickOutRequest) (*KickOutResponse, error) // ManageParty manage party // 管理队伍 ManageParty(context.Context, *ManagePartyRequest) (*ManagePartyResponse, error) // UpdateMember update member // 队伍成员更新信息 UpdateMember(context.Context, *UpdateMemberRequest) (*UpdateMemberResponse, error) // InviteJoin invite join party // 邀请加入队伍 InviteJoinParty(context.Context, *InviteJoinRequest) (*InviteJoinResponse, error) // InviteJoinReplay invite join party replay // 邀请加入队伍回复 InviteJoinReplay(context.Context, *InviteReplayRequest) (*InviteReplayResponse, error) }
PartyServiceServer is the server API for PartyService service. All implementations should embed UnimplementedPartyServiceServer for forward compatibility
PartyService is a service for party 组队服务
type PartyService_JoinPartyClient ¶
type PartyService_JoinPartyClient interface { Recv() (*JoinPartyResponse, error) grpc.ClientStream }
type PartyService_JoinPartyServer ¶
type PartyService_JoinPartyServer interface { Send(*JoinPartyResponse) error grpc.ServerStream }
type PartySetting ¶
type PartySetting struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // party id Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` // party type Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // party name Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` // party owner MaxMember int32 `protobuf:"varint,5,opt,name=max_member,json=maxMember,proto3" json:"max_member,omitempty"` // max member Refuse map[string]int64 `` //block list /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PartySetting) Descriptor
deprecated
func (*PartySetting) Descriptor() ([]byte, []int)
Deprecated: Use PartySetting.ProtoReflect.Descriptor instead.
func (*PartySetting) GetId ¶
func (x *PartySetting) GetId() string
func (*PartySetting) GetMaxMember ¶
func (x *PartySetting) GetMaxMember() int32
func (*PartySetting) GetName ¶
func (x *PartySetting) GetName() string
func (*PartySetting) GetOwner ¶
func (x *PartySetting) GetOwner() string
func (*PartySetting) GetRefuse ¶
func (x *PartySetting) GetRefuse() map[string]int64
func (*PartySetting) GetType ¶
func (x *PartySetting) GetType() int32
func (*PartySetting) ProtoMessage ¶
func (*PartySetting) ProtoMessage()
func (*PartySetting) ProtoReflect ¶
func (x *PartySetting) ProtoReflect() protoreflect.Message
func (*PartySetting) Reset ¶
func (x *PartySetting) Reset()
func (*PartySetting) String ¶
func (x *PartySetting) String() string
type UnimplementedPartyServiceServer ¶
type UnimplementedPartyServiceServer struct { }
UnimplementedPartyServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedPartyServiceServer) GetParty ¶
func (UnimplementedPartyServiceServer) GetParty(context.Context, *GetPartyRequest) (*GetPartyResponse, error)
func (UnimplementedPartyServiceServer) InviteJoinParty ¶
func (UnimplementedPartyServiceServer) InviteJoinParty(context.Context, *InviteJoinRequest) (*InviteJoinResponse, error)
func (UnimplementedPartyServiceServer) InviteJoinReplay ¶
func (UnimplementedPartyServiceServer) InviteJoinReplay(context.Context, *InviteReplayRequest) (*InviteReplayResponse, error)
func (UnimplementedPartyServiceServer) JoinParty ¶
func (UnimplementedPartyServiceServer) JoinParty(*JoinPartyRequest, PartyService_JoinPartyServer) error
func (UnimplementedPartyServiceServer) JoinPartyReply ¶
func (UnimplementedPartyServiceServer) JoinPartyReply(context.Context, *JoinPartyReplyRequest) (*JoinPartyReplyResponse, error)
func (UnimplementedPartyServiceServer) KickOut ¶
func (UnimplementedPartyServiceServer) KickOut(context.Context, *KickOutRequest) (*KickOutResponse, error)
func (UnimplementedPartyServiceServer) LeaveParty ¶
func (UnimplementedPartyServiceServer) LeaveParty(context.Context, *LeavePartyRequest) (*LeavePartyResponse, error)
func (UnimplementedPartyServiceServer) ManageParty ¶
func (UnimplementedPartyServiceServer) ManageParty(context.Context, *ManagePartyRequest) (*ManagePartyResponse, error)
func (UnimplementedPartyServiceServer) UpdateMember ¶
func (UnimplementedPartyServiceServer) UpdateMember(context.Context, *UpdateMemberRequest) (*UpdateMemberResponse, error)
type UnsafePartyServiceServer ¶
type UnsafePartyServiceServer interface {
// contains filtered or unexported methods
}
UnsafePartyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PartyServiceServer will result in compilation errors.
type UpdateMemberRequest ¶
type UpdateMemberRequest struct { PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` // party id Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"` // member info // contains filtered or unexported fields }
func (*UpdateMemberRequest) Descriptor
deprecated
func (*UpdateMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMemberRequest.ProtoReflect.Descriptor instead.
func (*UpdateMemberRequest) GetMember ¶
func (x *UpdateMemberRequest) GetMember() *Member
func (*UpdateMemberRequest) GetPartyId ¶
func (x *UpdateMemberRequest) GetPartyId() string
func (*UpdateMemberRequest) ProtoMessage ¶
func (*UpdateMemberRequest) ProtoMessage()
func (*UpdateMemberRequest) ProtoReflect ¶
func (x *UpdateMemberRequest) ProtoReflect() protoreflect.Message
func (*UpdateMemberRequest) Reset ¶
func (x *UpdateMemberRequest) Reset()
func (*UpdateMemberRequest) String ¶
func (x *UpdateMemberRequest) String() string
type UpdateMemberResponse ¶
type UpdateMemberResponse struct {
// contains filtered or unexported fields
}
func (*UpdateMemberResponse) Descriptor
deprecated
func (*UpdateMemberResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMemberResponse.ProtoReflect.Descriptor instead.
func (*UpdateMemberResponse) ProtoMessage ¶
func (*UpdateMemberResponse) ProtoMessage()
func (*UpdateMemberResponse) ProtoReflect ¶
func (x *UpdateMemberResponse) ProtoReflect() protoreflect.Message
func (*UpdateMemberResponse) Reset ¶
func (x *UpdateMemberResponse) Reset()
func (*UpdateMemberResponse) String ¶
func (x *UpdateMemberResponse) String() string