Documentation ¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterProfilePrivateServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProfilePrivateServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfilePrivateServiceClient) error
- func RegisterProfilePrivateServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProfilePrivateServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfilePrivateServiceServer) error
- func RegisterProfilePrivateServiceServer(s grpc.ServiceRegistrar, srv ProfilePrivateServiceServer)
- func RegisterProfileServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProfileServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileServiceClient) error
- func RegisterProfileServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProfileServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServiceServer) error
- func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)
- type CreateProfileRequest
- func (*CreateProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProfileRequest) GetProfile() *Profile
- func (*CreateProfileRequest) ProtoMessage()
- func (x *CreateProfileRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProfileRequest) Reset()
- func (x *CreateProfileRequest) String() string
- type CreateProfileResponse
- func (*CreateProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProfileResponse) GetProfile() *Profile
- func (*CreateProfileResponse) ProtoMessage()
- func (x *CreateProfileResponse) ProtoReflect() protoreflect.Message
- func (x *CreateProfileResponse) Reset()
- func (x *CreateProfileResponse) String() string
- type GetProfileBasicsRequest
- func (*GetProfileBasicsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileBasicsRequest) GetUid() []string
- func (*GetProfileBasicsRequest) ProtoMessage()
- func (x *GetProfileBasicsRequest) ProtoReflect() protoreflect.Message
- func (x *GetProfileBasicsRequest) Reset()
- func (x *GetProfileBasicsRequest) String() string
- type GetProfileBasicsResponse
- func (*GetProfileBasicsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileBasicsResponse) GetBasics() map[string]*ProfileBasic
- func (*GetProfileBasicsResponse) ProtoMessage()
- func (x *GetProfileBasicsResponse) ProtoReflect() protoreflect.Message
- func (x *GetProfileBasicsResponse) Reset()
- func (x *GetProfileBasicsResponse) String() string
- type GetProfilePrivateRequest
- func (*GetProfilePrivateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfilePrivateRequest) GetAccount() string
- func (x *GetProfilePrivateRequest) GetAll() *GetProfilePrivateRequest_All
- func (x *GetProfilePrivateRequest) GetChannelId() string
- func (m *GetProfilePrivateRequest) GetKind() isGetProfilePrivateRequest_Kind
- func (x *GetProfilePrivateRequest) GetName() *GetProfilePrivateRequest_Name
- func (x *GetProfilePrivateRequest) GetPlatformId() string
- func (x *GetProfilePrivateRequest) GetUids() *GetProfilePrivateRequest_Uids
- func (*GetProfilePrivateRequest) ProtoMessage()
- func (x *GetProfilePrivateRequest) ProtoReflect() protoreflect.Message
- func (x *GetProfilePrivateRequest) Reset()
- func (x *GetProfilePrivateRequest) String() string
- type GetProfilePrivateRequest_Account
- type GetProfilePrivateRequest_All
- func (*GetProfilePrivateRequest_All) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfilePrivateRequest_All) GetPage() int32
- func (x *GetProfilePrivateRequest_All) GetPageSize() int32
- func (*GetProfilePrivateRequest_All) ProtoMessage()
- func (x *GetProfilePrivateRequest_All) ProtoReflect() protoreflect.Message
- func (x *GetProfilePrivateRequest_All) Reset()
- func (x *GetProfilePrivateRequest_All) String() string
- type GetProfilePrivateRequest_All_
- type GetProfilePrivateRequest_Name
- func (*GetProfilePrivateRequest_Name) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfilePrivateRequest_Name) GetIsRegexp() bool
- func (x *GetProfilePrivateRequest_Name) GetName() string
- func (x *GetProfilePrivateRequest_Name) GetPage() int32
- func (x *GetProfilePrivateRequest_Name) GetPageSize() int32
- func (*GetProfilePrivateRequest_Name) ProtoMessage()
- func (x *GetProfilePrivateRequest_Name) ProtoReflect() protoreflect.Message
- func (x *GetProfilePrivateRequest_Name) Reset()
- func (x *GetProfilePrivateRequest_Name) String() string
- type GetProfilePrivateRequest_Name_
- type GetProfilePrivateRequest_Uids
- func (*GetProfilePrivateRequest_Uids) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfilePrivateRequest_Uids) GetUid() []string
- func (*GetProfilePrivateRequest_Uids) ProtoMessage()
- func (x *GetProfilePrivateRequest_Uids) ProtoReflect() protoreflect.Message
- func (x *GetProfilePrivateRequest_Uids) Reset()
- func (x *GetProfilePrivateRequest_Uids) String() string
- type GetProfilePrivateRequest_Uids_
- type GetProfilePrivateResponse
- func (*GetProfilePrivateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfilePrivateResponse) GetProfiles() []*Profile
- func (*GetProfilePrivateResponse) ProtoMessage()
- func (x *GetProfilePrivateResponse) ProtoReflect() protoreflect.Message
- func (x *GetProfilePrivateResponse) Reset()
- func (x *GetProfilePrivateResponse) String() string
- type GetProfileRequest
- type GetProfileResponse
- func (*GetProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileResponse) GetProfile() *Profile
- func (*GetProfileResponse) ProtoMessage()
- func (x *GetProfileResponse) ProtoReflect() protoreflect.Message
- func (x *GetProfileResponse) Reset()
- func (x *GetProfileResponse) String() string
- type GetProfileStatusRequest
- func (*GetProfileStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileStatusRequest) GetUid() []string
- func (*GetProfileStatusRequest) ProtoMessage()
- func (x *GetProfileStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetProfileStatusRequest) Reset()
- func (x *GetProfileStatusRequest) String() string
- type GetProfileStatusResponse
- func (*GetProfileStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileStatusResponse) GetStatus() map[string]int32
- func (*GetProfileStatusResponse) ProtoMessage()
- func (x *GetProfileStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetProfileStatusResponse) Reset()
- func (x *GetProfileStatusResponse) String() string
- type IsProfileExistRequest
- func (*IsProfileExistRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsProfileExistRequest) GetUid() string
- func (*IsProfileExistRequest) ProtoMessage()
- func (x *IsProfileExistRequest) ProtoReflect() protoreflect.Message
- func (x *IsProfileExistRequest) Reset()
- func (x *IsProfileExistRequest) String() string
- type IsProfileExistResponse
- func (*IsProfileExistResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsProfileExistResponse) GetExist() bool
- func (*IsProfileExistResponse) ProtoMessage()
- func (x *IsProfileExistResponse) ProtoReflect() protoreflect.Message
- func (x *IsProfileExistResponse) Reset()
- func (x *IsProfileExistResponse) String() string
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetAccount() string
- func (x *Profile) GetAvatar() string
- func (x *Profile) GetChannel() int32
- func (x *Profile) GetDeleteTime() int64
- func (x *Profile) GetDeviceId() string
- func (x *Profile) GetEmail() string
- func (x *Profile) GetGuideStep() int32
- func (x *Profile) GetHeroId() int32
- func (x *Profile) GetLastLoginTime() int64
- func (x *Profile) GetNickname() string
- func (x *Profile) GetOnlineStatus() int32
- func (x *Profile) GetOpenid() string
- func (x *Profile) GetPetProfileId() int64
- func (x *Profile) GetPhone() string
- func (x *Profile) GetPlatformId() string
- func (x *Profile) GetRechargeAmount() int64
- func (x *Profile) GetRegisterIp() string
- func (x *Profile) GetRegisterTime() int64
- func (x *Profile) GetUid() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type ProfileBasic
- func (*ProfileBasic) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileBasic) GetAvatar() string
- func (x *ProfileBasic) GetBattleUrl() string
- func (x *ProfileBasic) GetHallUrl() string
- func (x *ProfileBasic) GetHeroId() int32
- func (x *ProfileBasic) GetNickname() string
- func (x *ProfileBasic) GetOnlineStatus() int32
- func (x *ProfileBasic) GetRoomHostname() string
- func (x *ProfileBasic) GetRoomId() string
- func (x *ProfileBasic) GetUid() string
- func (*ProfileBasic) ProtoMessage()
- func (x *ProfileBasic) ProtoReflect() protoreflect.Message
- func (x *ProfileBasic) Reset()
- func (x *ProfileBasic) String() string
- type ProfilePrivateServiceClient
- type ProfilePrivateServiceServer
- type ProfileServiceClient
- type ProfileServiceServer
- type ProfileService_WatchProfileClient
- type ProfileService_WatchProfileServer
- type ProfileStatus
- func (ProfileStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ProfileStatus) Enum() *ProfileStatus
- func (ProfileStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProfileStatus) Number() protoreflect.EnumNumber
- func (x ProfileStatus) String() string
- func (ProfileStatus) Type() protoreflect.EnumType
- type SetProfileStatusRequest
- func (*SetProfileStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetProfileStatusRequest) GetStatus() int32
- func (x *SetProfileStatusRequest) GetUid() string
- func (*SetProfileStatusRequest) ProtoMessage()
- func (x *SetProfileStatusRequest) ProtoReflect() protoreflect.Message
- func (x *SetProfileStatusRequest) Reset()
- func (x *SetProfileStatusRequest) String() string
- type SetProfileStatusResponse
- type UnimplementedProfilePrivateServiceServer
- func (UnimplementedProfilePrivateServiceServer) GetProfileBasics(context.Context, *GetProfileBasicsRequest) (*GetProfileBasicsResponse, error)
- func (UnimplementedProfilePrivateServiceServer) GetProfilePrivate(context.Context, *GetProfilePrivateRequest) (*GetProfilePrivateResponse, error)
- func (UnimplementedProfilePrivateServiceServer) SetProfileStatus(context.Context, *SetProfileStatusRequest) (*SetProfileStatusResponse, error)
- type UnimplementedProfileServiceServer
- func (UnimplementedProfileServiceServer) CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error)
- func (UnimplementedProfileServiceServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error)
- func (UnimplementedProfileServiceServer) GetProfileStatus(context.Context, *GetProfileStatusRequest) (*GetProfileStatusResponse, error)
- func (UnimplementedProfileServiceServer) IsProfileExist(context.Context, *IsProfileExistRequest) (*IsProfileExistResponse, error)
- func (UnimplementedProfileServiceServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error)
- func (UnimplementedProfileServiceServer) WatchProfile(*WatchProfileRequest, ProfileService_WatchProfileServer) error
- type UnsafeProfilePrivateServiceServer
- type UnsafeProfileServiceServer
- type UpdateProfileRequest
- func (*UpdateProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProfileRequest) GetBasic() *ProfileBasic
- func (x *UpdateProfileRequest) GetProfile() *Profile
- func (*UpdateProfileRequest) ProtoMessage()
- func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProfileRequest) Reset()
- func (x *UpdateProfileRequest) String() string
- type UpdateProfileResponse
- func (*UpdateProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProfileResponse) GetProfile() *Profile
- func (*UpdateProfileResponse) ProtoMessage()
- func (x *UpdateProfileResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateProfileResponse) Reset()
- func (x *UpdateProfileResponse) String() string
- type WatchProfileRequest
- func (*WatchProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchProfileRequest) GetUid() string
- func (*WatchProfileRequest) ProtoMessage()
- func (x *WatchProfileRequest) ProtoReflect() protoreflect.Message
- func (x *WatchProfileRequest) Reset()
- func (x *WatchProfileRequest) String() string
- type WatchProfileResponse
- func (*WatchProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchProfileResponse) GetProfile() *Profile
- func (*WatchProfileResponse) ProtoMessage()
- func (x *WatchProfileResponse) ProtoReflect() protoreflect.Message
- func (x *WatchProfileResponse) Reset()
- func (x *WatchProfileResponse) String() string
Constants ¶
const ( ProfileService_IsProfileExist_FullMethodName = "/profile.pb.ProfileService/IsProfileExist" ProfileService_GetProfile_FullMethodName = "/profile.pb.ProfileService/GetProfile" ProfileService_CreateProfile_FullMethodName = "/profile.pb.ProfileService/CreateProfile" ProfileService_UpdateProfile_FullMethodName = "/profile.pb.ProfileService/UpdateProfile" ProfileService_GetProfileStatus_FullMethodName = "/profile.pb.ProfileService/GetProfileStatus" ProfileService_WatchProfile_FullMethodName = "/profile.pb.ProfileService/WatchProfile" )
const ( ProfilePrivateService_GetProfilePrivate_FullMethodName = "/profile.pb.ProfilePrivateService/GetProfilePrivate" ProfilePrivateService_SetProfileStatus_FullMethodName = "/profile.pb.ProfilePrivateService/SetProfileStatus" ProfilePrivateService_GetProfileBasics_FullMethodName = "/profile.pb.ProfilePrivateService/GetProfileBasics" )
Variables ¶
var ( ProfileStatus_name = map[int32]string{ 0: "OFFLINE", 1: "ONLINE", 2: "BATTLE", 3: "HIDE", } ProfileStatus_value = map[string]int32{ "OFFLINE": 0, "ONLINE": 1, "BATTLE": 2, "HIDE": 3, } )
Enum value maps for ProfileStatus.
var File_profile_profiles_proto protoreflect.FileDescriptor
var ProfilePrivateService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "profile.pb.ProfilePrivateService", HandlerType: (*ProfilePrivateServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetProfilePrivate", Handler: _ProfilePrivateService_GetProfilePrivate_Handler, }, { MethodName: "SetProfileStatus", Handler: _ProfilePrivateService_SetProfileStatus_Handler, }, { MethodName: "GetProfileBasics", Handler: _ProfilePrivateService_GetProfileBasics_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "profile/profiles.proto", }
ProfilePrivateService_ServiceDesc is the grpc.ServiceDesc for ProfilePrivateService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ProfileService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "profile.pb.ProfileService", HandlerType: (*ProfileServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsProfileExist", Handler: _ProfileService_IsProfileExist_Handler, }, { MethodName: "GetProfile", Handler: _ProfileService_GetProfile_Handler, }, { MethodName: "CreateProfile", Handler: _ProfileService_CreateProfile_Handler, }, { MethodName: "UpdateProfile", Handler: _ProfileService_UpdateProfile_Handler, }, { MethodName: "GetProfileStatus", Handler: _ProfileService_GetProfileStatus_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WatchProfile", Handler: _ProfileService_WatchProfile_Handler, ServerStreams: true, }, }, Metadata: "profile/profiles.proto", }
ProfileService_ServiceDesc is the grpc.ServiceDesc for ProfileService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProfilePrivateServiceHandler ¶
func RegisterProfilePrivateServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterProfilePrivateServiceHandler registers the http handlers for service ProfilePrivateService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterProfilePrivateServiceHandlerClient ¶
func RegisterProfilePrivateServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfilePrivateServiceClient) error
RegisterProfilePrivateServiceHandlerClient registers the http handlers for service ProfilePrivateService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfilePrivateServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfilePrivateServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfilePrivateServiceClient" to call the correct interceptors.
func RegisterProfilePrivateServiceHandlerFromEndpoint ¶
func RegisterProfilePrivateServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterProfilePrivateServiceHandlerFromEndpoint is same as RegisterProfilePrivateServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterProfilePrivateServiceHandlerServer ¶
func RegisterProfilePrivateServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfilePrivateServiceServer) error
RegisterProfilePrivateServiceHandlerServer registers the http handlers for service ProfilePrivateService to "mux". UnaryRPC :call ProfilePrivateServiceServer 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 RegisterProfilePrivateServiceHandlerFromEndpoint instead.
func RegisterProfilePrivateServiceServer ¶
func RegisterProfilePrivateServiceServer(s grpc.ServiceRegistrar, srv ProfilePrivateServiceServer)
func RegisterProfileServiceHandler ¶
func RegisterProfileServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterProfileServiceHandler registers the http handlers for service ProfileService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterProfileServiceHandlerClient ¶
func RegisterProfileServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileServiceClient) error
RegisterProfileServiceHandlerClient registers the http handlers for service ProfileService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfileServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfileServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfileServiceClient" to call the correct interceptors.
func RegisterProfileServiceHandlerFromEndpoint ¶
func RegisterProfileServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterProfileServiceHandlerFromEndpoint is same as RegisterProfileServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterProfileServiceHandlerServer ¶
func RegisterProfileServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServiceServer) error
RegisterProfileServiceHandlerServer registers the http handlers for service ProfileService to "mux". UnaryRPC :call ProfileServiceServer 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 RegisterProfileServiceHandlerFromEndpoint instead.
func RegisterProfileServiceServer ¶
func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)
Types ¶
type CreateProfileRequest ¶
type CreateProfileRequest struct { Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*CreateProfileRequest) Descriptor
deprecated
func (*CreateProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProfileRequest.ProtoReflect.Descriptor instead.
func (*CreateProfileRequest) GetProfile ¶
func (x *CreateProfileRequest) GetProfile() *Profile
func (*CreateProfileRequest) ProtoMessage ¶
func (*CreateProfileRequest) ProtoMessage()
func (*CreateProfileRequest) ProtoReflect ¶
func (x *CreateProfileRequest) ProtoReflect() protoreflect.Message
func (*CreateProfileRequest) Reset ¶
func (x *CreateProfileRequest) Reset()
func (*CreateProfileRequest) String ¶
func (x *CreateProfileRequest) String() string
type CreateProfileResponse ¶
type CreateProfileResponse struct { Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*CreateProfileResponse) Descriptor
deprecated
func (*CreateProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateProfileResponse.ProtoReflect.Descriptor instead.
func (*CreateProfileResponse) GetProfile ¶
func (x *CreateProfileResponse) GetProfile() *Profile
func (*CreateProfileResponse) ProtoMessage ¶
func (*CreateProfileResponse) ProtoMessage()
func (*CreateProfileResponse) ProtoReflect ¶
func (x *CreateProfileResponse) ProtoReflect() protoreflect.Message
func (*CreateProfileResponse) Reset ¶
func (x *CreateProfileResponse) Reset()
func (*CreateProfileResponse) String ¶
func (x *CreateProfileResponse) String() string
type GetProfileBasicsRequest ¶
type GetProfileBasicsRequest struct { Uid []string `protobuf:"bytes,1,rep,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*GetProfileBasicsRequest) Descriptor
deprecated
func (*GetProfileBasicsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileBasicsRequest.ProtoReflect.Descriptor instead.
func (*GetProfileBasicsRequest) GetUid ¶
func (x *GetProfileBasicsRequest) GetUid() []string
func (*GetProfileBasicsRequest) ProtoMessage ¶
func (*GetProfileBasicsRequest) ProtoMessage()
func (*GetProfileBasicsRequest) ProtoReflect ¶
func (x *GetProfileBasicsRequest) ProtoReflect() protoreflect.Message
func (*GetProfileBasicsRequest) Reset ¶
func (x *GetProfileBasicsRequest) Reset()
func (*GetProfileBasicsRequest) String ¶
func (x *GetProfileBasicsRequest) String() string
type GetProfileBasicsResponse ¶
type GetProfileBasicsResponse struct { Basics map[string]*ProfileBasic `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetProfileBasicsResponse) Descriptor
deprecated
func (*GetProfileBasicsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileBasicsResponse.ProtoReflect.Descriptor instead.
func (*GetProfileBasicsResponse) GetBasics ¶
func (x *GetProfileBasicsResponse) GetBasics() map[string]*ProfileBasic
func (*GetProfileBasicsResponse) ProtoMessage ¶
func (*GetProfileBasicsResponse) ProtoMessage()
func (*GetProfileBasicsResponse) ProtoReflect ¶
func (x *GetProfileBasicsResponse) ProtoReflect() protoreflect.Message
func (*GetProfileBasicsResponse) Reset ¶
func (x *GetProfileBasicsResponse) Reset()
func (*GetProfileBasicsResponse) String ¶
func (x *GetProfileBasicsResponse) String() string
type GetProfilePrivateRequest ¶
type GetProfilePrivateRequest struct { // Types that are assignable to Kind: // // *GetProfilePrivateRequest_Uids_ // *GetProfilePrivateRequest_Name_ // *GetProfilePrivateRequest_All_ // *GetProfilePrivateRequest_Account Kind isGetProfilePrivateRequest_Kind `protobuf_oneof:"kind"` PlatformId string `protobuf:"bytes,5,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"` ChannelId string `protobuf:"bytes,6,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
func (*GetProfilePrivateRequest) Descriptor
deprecated
func (*GetProfilePrivateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProfilePrivateRequest.ProtoReflect.Descriptor instead.
func (*GetProfilePrivateRequest) GetAccount ¶
func (x *GetProfilePrivateRequest) GetAccount() string
func (*GetProfilePrivateRequest) GetAll ¶
func (x *GetProfilePrivateRequest) GetAll() *GetProfilePrivateRequest_All
func (*GetProfilePrivateRequest) GetChannelId ¶
func (x *GetProfilePrivateRequest) GetChannelId() string
func (*GetProfilePrivateRequest) GetKind ¶
func (m *GetProfilePrivateRequest) GetKind() isGetProfilePrivateRequest_Kind
func (*GetProfilePrivateRequest) GetName ¶
func (x *GetProfilePrivateRequest) GetName() *GetProfilePrivateRequest_Name
func (*GetProfilePrivateRequest) GetPlatformId ¶
func (x *GetProfilePrivateRequest) GetPlatformId() string
func (*GetProfilePrivateRequest) GetUids ¶
func (x *GetProfilePrivateRequest) GetUids() *GetProfilePrivateRequest_Uids
func (*GetProfilePrivateRequest) ProtoMessage ¶
func (*GetProfilePrivateRequest) ProtoMessage()
func (*GetProfilePrivateRequest) ProtoReflect ¶
func (x *GetProfilePrivateRequest) ProtoReflect() protoreflect.Message
func (*GetProfilePrivateRequest) Reset ¶
func (x *GetProfilePrivateRequest) Reset()
func (*GetProfilePrivateRequest) String ¶
func (x *GetProfilePrivateRequest) String() string
type GetProfilePrivateRequest_Account ¶
type GetProfilePrivateRequest_Account struct {
Account string `protobuf:"bytes,4,opt,name=account,proto3,oneof"`
}
type GetProfilePrivateRequest_All ¶
type GetProfilePrivateRequest_All struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*GetProfilePrivateRequest_All) Descriptor
deprecated
func (*GetProfilePrivateRequest_All) Descriptor() ([]byte, []int)
Deprecated: Use GetProfilePrivateRequest_All.ProtoReflect.Descriptor instead.
func (*GetProfilePrivateRequest_All) GetPage ¶
func (x *GetProfilePrivateRequest_All) GetPage() int32
func (*GetProfilePrivateRequest_All) GetPageSize ¶
func (x *GetProfilePrivateRequest_All) GetPageSize() int32
func (*GetProfilePrivateRequest_All) ProtoMessage ¶
func (*GetProfilePrivateRequest_All) ProtoMessage()
func (*GetProfilePrivateRequest_All) ProtoReflect ¶
func (x *GetProfilePrivateRequest_All) ProtoReflect() protoreflect.Message
func (*GetProfilePrivateRequest_All) Reset ¶
func (x *GetProfilePrivateRequest_All) Reset()
func (*GetProfilePrivateRequest_All) String ¶
func (x *GetProfilePrivateRequest_All) String() string
type GetProfilePrivateRequest_All_ ¶
type GetProfilePrivateRequest_All_ struct {
All *GetProfilePrivateRequest_All `protobuf:"bytes,3,opt,name=all,proto3,oneof"`
}
type GetProfilePrivateRequest_Name ¶
type GetProfilePrivateRequest_Name struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` IsRegexp bool `protobuf:"varint,2,opt,name=is_regexp,json=isRegexp,proto3" json:"is_regexp,omitempty"` // is find by regexp Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` // if is_regexp is true, page is required start from 1 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // if is_regexp is true, page_size is required default 10 // contains filtered or unexported fields }
func (*GetProfilePrivateRequest_Name) Descriptor
deprecated
func (*GetProfilePrivateRequest_Name) Descriptor() ([]byte, []int)
Deprecated: Use GetProfilePrivateRequest_Name.ProtoReflect.Descriptor instead.
func (*GetProfilePrivateRequest_Name) GetIsRegexp ¶
func (x *GetProfilePrivateRequest_Name) GetIsRegexp() bool
func (*GetProfilePrivateRequest_Name) GetName ¶
func (x *GetProfilePrivateRequest_Name) GetName() string
func (*GetProfilePrivateRequest_Name) GetPage ¶
func (x *GetProfilePrivateRequest_Name) GetPage() int32
func (*GetProfilePrivateRequest_Name) GetPageSize ¶
func (x *GetProfilePrivateRequest_Name) GetPageSize() int32
func (*GetProfilePrivateRequest_Name) ProtoMessage ¶
func (*GetProfilePrivateRequest_Name) ProtoMessage()
func (*GetProfilePrivateRequest_Name) ProtoReflect ¶
func (x *GetProfilePrivateRequest_Name) ProtoReflect() protoreflect.Message
func (*GetProfilePrivateRequest_Name) Reset ¶
func (x *GetProfilePrivateRequest_Name) Reset()
func (*GetProfilePrivateRequest_Name) String ¶
func (x *GetProfilePrivateRequest_Name) String() string
type GetProfilePrivateRequest_Name_ ¶
type GetProfilePrivateRequest_Name_ struct {
Name *GetProfilePrivateRequest_Name `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}
type GetProfilePrivateRequest_Uids ¶
type GetProfilePrivateRequest_Uids struct { Uid []string `protobuf:"bytes,1,rep,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*GetProfilePrivateRequest_Uids) Descriptor
deprecated
func (*GetProfilePrivateRequest_Uids) Descriptor() ([]byte, []int)
Deprecated: Use GetProfilePrivateRequest_Uids.ProtoReflect.Descriptor instead.
func (*GetProfilePrivateRequest_Uids) GetUid ¶
func (x *GetProfilePrivateRequest_Uids) GetUid() []string
func (*GetProfilePrivateRequest_Uids) ProtoMessage ¶
func (*GetProfilePrivateRequest_Uids) ProtoMessage()
func (*GetProfilePrivateRequest_Uids) ProtoReflect ¶
func (x *GetProfilePrivateRequest_Uids) ProtoReflect() protoreflect.Message
func (*GetProfilePrivateRequest_Uids) Reset ¶
func (x *GetProfilePrivateRequest_Uids) Reset()
func (*GetProfilePrivateRequest_Uids) String ¶
func (x *GetProfilePrivateRequest_Uids) String() string
type GetProfilePrivateRequest_Uids_ ¶
type GetProfilePrivateRequest_Uids_ struct {
Uids *GetProfilePrivateRequest_Uids `protobuf:"bytes,1,opt,name=uids,proto3,oneof"`
}
type GetProfilePrivateResponse ¶
type GetProfilePrivateResponse struct { Profiles []*Profile `protobuf:"bytes,1,rep,name=profiles,proto3" json:"profiles,omitempty"` // contains filtered or unexported fields }
func (*GetProfilePrivateResponse) Descriptor
deprecated
func (*GetProfilePrivateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProfilePrivateResponse.ProtoReflect.Descriptor instead.
func (*GetProfilePrivateResponse) GetProfiles ¶
func (x *GetProfilePrivateResponse) GetProfiles() []*Profile
func (*GetProfilePrivateResponse) ProtoMessage ¶
func (*GetProfilePrivateResponse) ProtoMessage()
func (*GetProfilePrivateResponse) ProtoReflect ¶
func (x *GetProfilePrivateResponse) ProtoReflect() protoreflect.Message
func (*GetProfilePrivateResponse) Reset ¶
func (x *GetProfilePrivateResponse) Reset()
func (*GetProfilePrivateResponse) String ¶
func (x *GetProfilePrivateResponse) String() string
type GetProfileRequest ¶
type GetProfileRequest struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*GetProfileRequest) Descriptor
deprecated
func (*GetProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.
func (*GetProfileRequest) GetUid ¶
func (x *GetProfileRequest) GetUid() string
func (*GetProfileRequest) ProtoMessage ¶
func (*GetProfileRequest) ProtoMessage()
func (*GetProfileRequest) ProtoReflect ¶
func (x *GetProfileRequest) ProtoReflect() protoreflect.Message
func (*GetProfileRequest) Reset ¶
func (x *GetProfileRequest) Reset()
func (*GetProfileRequest) String ¶
func (x *GetProfileRequest) String() string
type GetProfileResponse ¶
type GetProfileResponse struct { Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*GetProfileResponse) Descriptor
deprecated
func (*GetProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.
func (*GetProfileResponse) GetProfile ¶
func (x *GetProfileResponse) GetProfile() *Profile
func (*GetProfileResponse) ProtoMessage ¶
func (*GetProfileResponse) ProtoMessage()
func (*GetProfileResponse) ProtoReflect ¶
func (x *GetProfileResponse) ProtoReflect() protoreflect.Message
func (*GetProfileResponse) Reset ¶
func (x *GetProfileResponse) Reset()
func (*GetProfileResponse) String ¶
func (x *GetProfileResponse) String() string
type GetProfileStatusRequest ¶
type GetProfileStatusRequest struct { Uid []string `protobuf:"bytes,1,rep,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*GetProfileStatusRequest) Descriptor
deprecated
func (*GetProfileStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileStatusRequest.ProtoReflect.Descriptor instead.
func (*GetProfileStatusRequest) GetUid ¶
func (x *GetProfileStatusRequest) GetUid() []string
func (*GetProfileStatusRequest) ProtoMessage ¶
func (*GetProfileStatusRequest) ProtoMessage()
func (*GetProfileStatusRequest) ProtoReflect ¶
func (x *GetProfileStatusRequest) ProtoReflect() protoreflect.Message
func (*GetProfileStatusRequest) Reset ¶
func (x *GetProfileStatusRequest) Reset()
func (*GetProfileStatusRequest) String ¶
func (x *GetProfileStatusRequest) String() string
type GetProfileStatusResponse ¶
type GetProfileStatusResponse struct { Status map[string]int32 `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetProfileStatusResponse) Descriptor
deprecated
func (*GetProfileStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileStatusResponse.ProtoReflect.Descriptor instead.
func (*GetProfileStatusResponse) GetStatus ¶
func (x *GetProfileStatusResponse) GetStatus() map[string]int32
func (*GetProfileStatusResponse) ProtoMessage ¶
func (*GetProfileStatusResponse) ProtoMessage()
func (*GetProfileStatusResponse) ProtoReflect ¶
func (x *GetProfileStatusResponse) ProtoReflect() protoreflect.Message
func (*GetProfileStatusResponse) Reset ¶
func (x *GetProfileStatusResponse) Reset()
func (*GetProfileStatusResponse) String ¶
func (x *GetProfileStatusResponse) String() string
type IsProfileExistRequest ¶
type IsProfileExistRequest struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*IsProfileExistRequest) Descriptor
deprecated
func (*IsProfileExistRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsProfileExistRequest.ProtoReflect.Descriptor instead.
func (*IsProfileExistRequest) GetUid ¶
func (x *IsProfileExistRequest) GetUid() string
func (*IsProfileExistRequest) ProtoMessage ¶
func (*IsProfileExistRequest) ProtoMessage()
func (*IsProfileExistRequest) ProtoReflect ¶
func (x *IsProfileExistRequest) ProtoReflect() protoreflect.Message
func (*IsProfileExistRequest) Reset ¶
func (x *IsProfileExistRequest) Reset()
func (*IsProfileExistRequest) String ¶
func (x *IsProfileExistRequest) String() string
type IsProfileExistResponse ¶
type IsProfileExistResponse struct { Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"` // contains filtered or unexported fields }
func (*IsProfileExistResponse) Descriptor
deprecated
func (*IsProfileExistResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsProfileExistResponse.ProtoReflect.Descriptor instead.
func (*IsProfileExistResponse) GetExist ¶
func (x *IsProfileExistResponse) GetExist() bool
func (*IsProfileExistResponse) ProtoMessage ¶
func (*IsProfileExistResponse) ProtoMessage()
func (*IsProfileExistResponse) ProtoReflect ¶
func (x *IsProfileExistResponse) ProtoReflect() protoreflect.Message
func (*IsProfileExistResponse) Reset ¶
func (x *IsProfileExistResponse) Reset()
func (*IsProfileExistResponse) String ¶
func (x *IsProfileExistResponse) String() string
type Profile ¶
type Profile struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` HeroId int32 `protobuf:"varint,4,opt,name=hero_id,json=heroId,proto3" json:"hero_id,omitempty"` PetProfileId int64 `protobuf:"varint,5,opt,name=pet_profile_id,json=petProfileId,proto3" json:"pet_profile_id,omitempty"` OnlineStatus int32 `protobuf:"varint,6,opt,name=online_status,json=onlineStatus,proto3" json:"online_status,omitempty"` Channel int32 `protobuf:"varint,7,opt,name=channel,proto3" json:"channel,omitempty"` Openid string `protobuf:"bytes,8,opt,name=openid,proto3" json:"openid,omitempty"` Phone string `protobuf:"bytes,9,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"` DeviceId string `protobuf:"bytes,11,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` RechargeAmount int64 `protobuf:"varint,12,opt,name=recharge_amount,json=rechargeAmount,proto3" json:"recharge_amount,omitempty"` RegisterIp string `protobuf:"bytes,13,opt,name=register_ip,json=registerIp,proto3" json:"register_ip,omitempty"` RegisterTime int64 `protobuf:"varint,14,opt,name=register_time,json=registerTime,proto3" json:"register_time,omitempty"` PlatformId string `protobuf:"bytes,15,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"` LastLoginTime int64 `protobuf:"varint,16,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"` Account string `protobuf:"bytes,17,opt,name=account,proto3" json:"account,omitempty"` DeleteTime int64 `protobuf:"varint,18,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` //删除时间 GuideStep int32 `protobuf:"varint,19,opt,name=guide_step,json=guideStep,proto3" json:"guide_step,omitempty"` //新手引导完成的进度 最大值18 // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetAccount ¶
func (*Profile) GetChannel ¶
func (*Profile) GetDeleteTime ¶
func (*Profile) GetDeviceId ¶
func (*Profile) GetGuideStep ¶
func (*Profile) GetLastLoginTime ¶
func (*Profile) GetNickname ¶
func (*Profile) GetOnlineStatus ¶
func (*Profile) GetPetProfileId ¶
func (*Profile) GetPlatformId ¶
func (*Profile) GetRechargeAmount ¶
func (*Profile) GetRegisterIp ¶
func (*Profile) GetRegisterTime ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type ProfileBasic ¶
type ProfileBasic struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` HeroId int32 `protobuf:"varint,4,opt,name=hero_id,json=heroId,proto3" json:"hero_id,omitempty"` OnlineStatus int32 `protobuf:"varint,5,opt,name=online_status,json=onlineStatus,proto3" json:"online_status,omitempty"` HallUrl string `protobuf:"bytes,6,opt,name=hall_url,json=hallUrl,proto3" json:"hall_url,omitempty"` // hall host url BattleUrl string `protobuf:"bytes,7,opt,name=battle_url,json=battleUrl,proto3" json:"battle_url,omitempty"` //battle host url RoomId string `protobuf:"bytes,8,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // room id RoomHostname string `protobuf:"bytes,9,opt,name=room_hostname,json=roomHostname,proto3" json:"room_hostname,omitempty"` //room service host name // contains filtered or unexported fields }
func (*ProfileBasic) Descriptor
deprecated
func (*ProfileBasic) Descriptor() ([]byte, []int)
Deprecated: Use ProfileBasic.ProtoReflect.Descriptor instead.
func (*ProfileBasic) GetAvatar ¶
func (x *ProfileBasic) GetAvatar() string
func (*ProfileBasic) GetBattleUrl ¶
func (x *ProfileBasic) GetBattleUrl() string
func (*ProfileBasic) GetHallUrl ¶
func (x *ProfileBasic) GetHallUrl() string
func (*ProfileBasic) GetHeroId ¶
func (x *ProfileBasic) GetHeroId() int32
func (*ProfileBasic) GetNickname ¶
func (x *ProfileBasic) GetNickname() string
func (*ProfileBasic) GetOnlineStatus ¶
func (x *ProfileBasic) GetOnlineStatus() int32
func (*ProfileBasic) GetRoomHostname ¶
func (x *ProfileBasic) GetRoomHostname() string
func (*ProfileBasic) GetRoomId ¶
func (x *ProfileBasic) GetRoomId() string
func (*ProfileBasic) GetUid ¶
func (x *ProfileBasic) GetUid() string
func (*ProfileBasic) ProtoMessage ¶
func (*ProfileBasic) ProtoMessage()
func (*ProfileBasic) ProtoReflect ¶
func (x *ProfileBasic) ProtoReflect() protoreflect.Message
func (*ProfileBasic) Reset ¶
func (x *ProfileBasic) Reset()
func (*ProfileBasic) String ¶
func (x *ProfileBasic) String() string
type ProfilePrivateServiceClient ¶
type ProfilePrivateServiceClient interface { // GetProfilePrivate get profile info for private use,like gm,admin etc // 获取玩家信息,如gm,admin等 GetProfilePrivate(ctx context.Context, in *GetProfilePrivateRequest, opts ...grpc.CallOption) (*GetProfilePrivateResponse, error) // SetProfileStatus set profile status // 设置玩家在线状态 SetProfileStatus(ctx context.Context, in *SetProfileStatusRequest, opts ...grpc.CallOption) (*SetProfileStatusResponse, error) // GetProfileBasics multiple get profile basics, for friends, leaderboard etc // 批量获取玩家基本信息,适用于好友,排行榜等等 GetProfileBasics(ctx context.Context, in *GetProfileBasicsRequest, opts ...grpc.CallOption) (*GetProfileBasicsResponse, error) }
ProfilePrivateServiceClient is the client API for ProfilePrivateService 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 NewProfilePrivateServiceClient ¶
func NewProfilePrivateServiceClient(cc grpc.ClientConnInterface) ProfilePrivateServiceClient
type ProfilePrivateServiceServer ¶
type ProfilePrivateServiceServer interface { // GetProfilePrivate get profile info for private use,like gm,admin etc // 获取玩家信息,如gm,admin等 GetProfilePrivate(context.Context, *GetProfilePrivateRequest) (*GetProfilePrivateResponse, error) // SetProfileStatus set profile status // 设置玩家在线状态 SetProfileStatus(context.Context, *SetProfileStatusRequest) (*SetProfileStatusResponse, error) // GetProfileBasics multiple get profile basics, for friends, leaderboard etc // 批量获取玩家基本信息,适用于好友,排行榜等等 GetProfileBasics(context.Context, *GetProfileBasicsRequest) (*GetProfileBasicsResponse, error) }
ProfilePrivateServiceServer is the server API for ProfilePrivateService service. All implementations should embed UnimplementedProfilePrivateServiceServer for forward compatibility
type ProfileServiceClient ¶
type ProfileServiceClient interface { // IsProfileExist check if profile exist // 当前玩家是否存在 IsProfileExist(ctx context.Context, in *IsProfileExistRequest, opts ...grpc.CallOption) (*IsProfileExistResponse, error) // GetProfile get profile by uid // 获取玩家基本信息 GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error) // CreateProfile create profile // 创建玩家基本信息 CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*CreateProfileResponse, error) // UpdateProfile update profile // 更新玩家基本信息 UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error) // GetProfileStatus get profile status // 获取玩家在线状态 GetProfileStatus(ctx context.Context, in *GetProfileStatusRequest, opts ...grpc.CallOption) (*GetProfileStatusResponse, error) // WatchProfile watch profile // 监听玩家基本信息变化 WatchProfile(ctx context.Context, in *WatchProfileRequest, opts ...grpc.CallOption) (ProfileService_WatchProfileClient, error) }
ProfileServiceClient is the client API for ProfileService 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.
ProfileService is the service for profile 玩家基本信息服务
func NewProfileServiceClient ¶
func NewProfileServiceClient(cc grpc.ClientConnInterface) ProfileServiceClient
type ProfileServiceServer ¶
type ProfileServiceServer interface { // IsProfileExist check if profile exist // 当前玩家是否存在 IsProfileExist(context.Context, *IsProfileExistRequest) (*IsProfileExistResponse, error) // GetProfile get profile by uid // 获取玩家基本信息 GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error) // CreateProfile create profile // 创建玩家基本信息 CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error) // UpdateProfile update profile // 更新玩家基本信息 UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error) // GetProfileStatus get profile status // 获取玩家在线状态 GetProfileStatus(context.Context, *GetProfileStatusRequest) (*GetProfileStatusResponse, error) // WatchProfile watch profile // 监听玩家基本信息变化 WatchProfile(*WatchProfileRequest, ProfileService_WatchProfileServer) error }
ProfileServiceServer is the server API for ProfileService service. All implementations should embed UnimplementedProfileServiceServer for forward compatibility
ProfileService is the service for profile 玩家基本信息服务
type ProfileService_WatchProfileClient ¶
type ProfileService_WatchProfileClient interface { Recv() (*WatchProfileResponse, error) grpc.ClientStream }
type ProfileService_WatchProfileServer ¶
type ProfileService_WatchProfileServer interface { Send(*WatchProfileResponse) error grpc.ServerStream }
type ProfileStatus ¶
type ProfileStatus int32
const ( ProfileStatus_OFFLINE ProfileStatus = 0 //离线 ProfileStatus_ONLINE ProfileStatus = 1 //在线 空闲 ProfileStatus_BATTLE ProfileStatus = 2 //在线 战斗中 ProfileStatus_HIDE ProfileStatus = 3 //隐身 )
func (ProfileStatus) Descriptor ¶
func (ProfileStatus) Descriptor() protoreflect.EnumDescriptor
func (ProfileStatus) Enum ¶
func (x ProfileStatus) Enum() *ProfileStatus
func (ProfileStatus) EnumDescriptor
deprecated
func (ProfileStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProfileStatus.Descriptor instead.
func (ProfileStatus) Number ¶
func (x ProfileStatus) Number() protoreflect.EnumNumber
func (ProfileStatus) String ¶
func (x ProfileStatus) String() string
func (ProfileStatus) Type ¶
func (ProfileStatus) Type() protoreflect.EnumType
type SetProfileStatusRequest ¶
type SetProfileStatusRequest struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*SetProfileStatusRequest) Descriptor
deprecated
func (*SetProfileStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetProfileStatusRequest.ProtoReflect.Descriptor instead.
func (*SetProfileStatusRequest) GetStatus ¶
func (x *SetProfileStatusRequest) GetStatus() int32
func (*SetProfileStatusRequest) GetUid ¶
func (x *SetProfileStatusRequest) GetUid() string
func (*SetProfileStatusRequest) ProtoMessage ¶
func (*SetProfileStatusRequest) ProtoMessage()
func (*SetProfileStatusRequest) ProtoReflect ¶
func (x *SetProfileStatusRequest) ProtoReflect() protoreflect.Message
func (*SetProfileStatusRequest) Reset ¶
func (x *SetProfileStatusRequest) Reset()
func (*SetProfileStatusRequest) String ¶
func (x *SetProfileStatusRequest) String() string
type SetProfileStatusResponse ¶
type SetProfileStatusResponse struct {
// contains filtered or unexported fields
}
func (*SetProfileStatusResponse) Descriptor
deprecated
func (*SetProfileStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetProfileStatusResponse.ProtoReflect.Descriptor instead.
func (*SetProfileStatusResponse) ProtoMessage ¶
func (*SetProfileStatusResponse) ProtoMessage()
func (*SetProfileStatusResponse) ProtoReflect ¶
func (x *SetProfileStatusResponse) ProtoReflect() protoreflect.Message
func (*SetProfileStatusResponse) Reset ¶
func (x *SetProfileStatusResponse) Reset()
func (*SetProfileStatusResponse) String ¶
func (x *SetProfileStatusResponse) String() string
type UnimplementedProfilePrivateServiceServer ¶
type UnimplementedProfilePrivateServiceServer struct { }
UnimplementedProfilePrivateServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedProfilePrivateServiceServer) GetProfileBasics ¶
func (UnimplementedProfilePrivateServiceServer) GetProfileBasics(context.Context, *GetProfileBasicsRequest) (*GetProfileBasicsResponse, error)
func (UnimplementedProfilePrivateServiceServer) GetProfilePrivate ¶
func (UnimplementedProfilePrivateServiceServer) GetProfilePrivate(context.Context, *GetProfilePrivateRequest) (*GetProfilePrivateResponse, error)
func (UnimplementedProfilePrivateServiceServer) SetProfileStatus ¶
func (UnimplementedProfilePrivateServiceServer) SetProfileStatus(context.Context, *SetProfileStatusRequest) (*SetProfileStatusResponse, error)
type UnimplementedProfileServiceServer ¶
type UnimplementedProfileServiceServer struct { }
UnimplementedProfileServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedProfileServiceServer) CreateProfile ¶
func (UnimplementedProfileServiceServer) CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error)
func (UnimplementedProfileServiceServer) GetProfile ¶
func (UnimplementedProfileServiceServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error)
func (UnimplementedProfileServiceServer) GetProfileStatus ¶
func (UnimplementedProfileServiceServer) GetProfileStatus(context.Context, *GetProfileStatusRequest) (*GetProfileStatusResponse, error)
func (UnimplementedProfileServiceServer) IsProfileExist ¶
func (UnimplementedProfileServiceServer) IsProfileExist(context.Context, *IsProfileExistRequest) (*IsProfileExistResponse, error)
func (UnimplementedProfileServiceServer) UpdateProfile ¶
func (UnimplementedProfileServiceServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error)
func (UnimplementedProfileServiceServer) WatchProfile ¶
func (UnimplementedProfileServiceServer) WatchProfile(*WatchProfileRequest, ProfileService_WatchProfileServer) error
type UnsafeProfilePrivateServiceServer ¶
type UnsafeProfilePrivateServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProfilePrivateServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfilePrivateServiceServer will result in compilation errors.
type UnsafeProfileServiceServer ¶
type UnsafeProfileServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProfileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServiceServer will result in compilation errors.
type UpdateProfileRequest ¶
type UpdateProfileRequest struct { Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` Basic *ProfileBasic `protobuf:"bytes,2,opt,name=basic,proto3" json:"basic,omitempty"` //basic info in redis // contains filtered or unexported fields }
func (*UpdateProfileRequest) Descriptor
deprecated
func (*UpdateProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.
func (*UpdateProfileRequest) GetBasic ¶
func (x *UpdateProfileRequest) GetBasic() *ProfileBasic
func (*UpdateProfileRequest) GetProfile ¶
func (x *UpdateProfileRequest) GetProfile() *Profile
func (*UpdateProfileRequest) ProtoMessage ¶
func (*UpdateProfileRequest) ProtoMessage()
func (*UpdateProfileRequest) ProtoReflect ¶
func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message
func (*UpdateProfileRequest) Reset ¶
func (x *UpdateProfileRequest) Reset()
func (*UpdateProfileRequest) String ¶
func (x *UpdateProfileRequest) String() string
type UpdateProfileResponse ¶
type UpdateProfileResponse struct { Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*UpdateProfileResponse) Descriptor
deprecated
func (*UpdateProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProfileResponse.ProtoReflect.Descriptor instead.
func (*UpdateProfileResponse) GetProfile ¶
func (x *UpdateProfileResponse) GetProfile() *Profile
func (*UpdateProfileResponse) ProtoMessage ¶
func (*UpdateProfileResponse) ProtoMessage()
func (*UpdateProfileResponse) ProtoReflect ¶
func (x *UpdateProfileResponse) ProtoReflect() protoreflect.Message
func (*UpdateProfileResponse) Reset ¶
func (x *UpdateProfileResponse) Reset()
func (*UpdateProfileResponse) String ¶
func (x *UpdateProfileResponse) String() string
type WatchProfileRequest ¶
type WatchProfileRequest struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*WatchProfileRequest) Descriptor
deprecated
func (*WatchProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchProfileRequest.ProtoReflect.Descriptor instead.
func (*WatchProfileRequest) GetUid ¶
func (x *WatchProfileRequest) GetUid() string
func (*WatchProfileRequest) ProtoMessage ¶
func (*WatchProfileRequest) ProtoMessage()
func (*WatchProfileRequest) ProtoReflect ¶
func (x *WatchProfileRequest) ProtoReflect() protoreflect.Message
func (*WatchProfileRequest) Reset ¶
func (x *WatchProfileRequest) Reset()
func (*WatchProfileRequest) String ¶
func (x *WatchProfileRequest) String() string
type WatchProfileResponse ¶
type WatchProfileResponse struct { Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*WatchProfileResponse) Descriptor
deprecated
func (*WatchProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchProfileResponse.ProtoReflect.Descriptor instead.
func (*WatchProfileResponse) GetProfile ¶
func (x *WatchProfileResponse) GetProfile() *Profile
func (*WatchProfileResponse) ProtoMessage ¶
func (*WatchProfileResponse) ProtoMessage()
func (*WatchProfileResponse) ProtoReflect ¶
func (x *WatchProfileResponse) ProtoReflect() protoreflect.Message
func (*WatchProfileResponse) Reset ¶
func (x *WatchProfileResponse) Reset()
func (*WatchProfileResponse) String ¶
func (x *WatchProfileResponse) String() string