Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type GetIdByUniqueReply
- func (*GetIdByUniqueReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdByUniqueReply) GetUserId() uint64
- func (*GetIdByUniqueReply) ProtoMessage()
- func (x *GetIdByUniqueReply) ProtoReflect() protoreflect.Message
- func (x *GetIdByUniqueReply) Reset()
- func (x *GetIdByUniqueReply) String() string
- func (m *GetIdByUniqueReply) Validate() error
- func (m *GetIdByUniqueReply) ValidateAll() error
- type GetIdByUniqueReplyMultiError
- type GetIdByUniqueReplyValidationError
- func (e GetIdByUniqueReplyValidationError) Cause() error
- func (e GetIdByUniqueReplyValidationError) Error() string
- func (e GetIdByUniqueReplyValidationError) ErrorName() string
- func (e GetIdByUniqueReplyValidationError) Field() string
- func (e GetIdByUniqueReplyValidationError) Key() bool
- func (e GetIdByUniqueReplyValidationError) Reason() string
- type GetIdByUniqueRequest
- func (*GetIdByUniqueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdByUniqueRequest) GetUniqueId() string
- func (*GetIdByUniqueRequest) ProtoMessage()
- func (x *GetIdByUniqueRequest) ProtoReflect() protoreflect.Message
- func (x *GetIdByUniqueRequest) Reset()
- func (x *GetIdByUniqueRequest) String() string
- func (m *GetIdByUniqueRequest) Validate() error
- func (m *GetIdByUniqueRequest) ValidateAll() error
- type GetIdByUniqueRequestMultiError
- type GetIdByUniqueRequestValidationError
- func (e GetIdByUniqueRequestValidationError) Cause() error
- func (e GetIdByUniqueRequestValidationError) Error() string
- func (e GetIdByUniqueRequestValidationError) ErrorName() string
- func (e GetIdByUniqueRequestValidationError) Field() string
- func (e GetIdByUniqueRequestValidationError) Key() bool
- func (e GetIdByUniqueRequestValidationError) Reason() string
- type GetProfileReply
- func (*GetProfileReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileReply) GetMsg() string
- func (x *GetProfileReply) GetPhone() string
- func (x *GetProfileReply) GetProfile() *UserProfile
- func (*GetProfileReply) ProtoMessage()
- func (x *GetProfileReply) ProtoReflect() protoreflect.Message
- func (x *GetProfileReply) Reset()
- func (x *GetProfileReply) String() string
- func (m *GetProfileReply) Validate() error
- func (m *GetProfileReply) ValidateAll() error
- type GetProfileReplyMultiError
- type GetProfileReplyValidationError
- func (e GetProfileReplyValidationError) Cause() error
- func (e GetProfileReplyValidationError) Error() string
- func (e GetProfileReplyValidationError) ErrorName() string
- func (e GetProfileReplyValidationError) Field() string
- func (e GetProfileReplyValidationError) Key() bool
- func (e GetProfileReplyValidationError) Reason() string
- type GetProfileRequest
- func (*GetProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileRequest) GetUniqueId() string
- func (*GetProfileRequest) ProtoMessage()
- func (x *GetProfileRequest) ProtoReflect() protoreflect.Message
- func (x *GetProfileRequest) Reset()
- func (x *GetProfileRequest) String() string
- func (m *GetProfileRequest) Validate() error
- func (m *GetProfileRequest) ValidateAll() error
- type GetProfileRequestMultiError
- type GetProfileRequestValidationError
- func (e GetProfileRequestValidationError) Cause() error
- func (e GetProfileRequestValidationError) Error() string
- func (e GetProfileRequestValidationError) ErrorName() string
- func (e GetProfileRequestValidationError) Field() string
- func (e GetProfileRequestValidationError) Key() bool
- func (e GetProfileRequestValidationError) Reason() string
- type GetPublicKeyReply
- func (*GetPublicKeyReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicKeyReply) GetPublicKey() string
- func (*GetPublicKeyReply) ProtoMessage()
- func (x *GetPublicKeyReply) ProtoReflect() protoreflect.Message
- func (x *GetPublicKeyReply) Reset()
- func (x *GetPublicKeyReply) String() string
- func (m *GetPublicKeyReply) Validate() error
- func (m *GetPublicKeyReply) ValidateAll() error
- type GetPublicKeyReplyMultiError
- type GetPublicKeyReplyValidationError
- func (e GetPublicKeyReplyValidationError) Cause() error
- func (e GetPublicKeyReplyValidationError) Error() string
- func (e GetPublicKeyReplyValidationError) ErrorName() string
- func (e GetPublicKeyReplyValidationError) Field() string
- func (e GetPublicKeyReplyValidationError) Key() bool
- func (e GetPublicKeyReplyValidationError) Reason() string
- type GetPublicKeyRequest
- func (*GetPublicKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicKeyRequest) GetUserId() uint64
- func (*GetPublicKeyRequest) ProtoMessage()
- func (x *GetPublicKeyRequest) ProtoReflect() protoreflect.Message
- func (x *GetPublicKeyRequest) Reset()
- func (x *GetPublicKeyRequest) String() string
- func (m *GetPublicKeyRequest) Validate() error
- func (m *GetPublicKeyRequest) ValidateAll() error
- type GetPublicKeyRequestMultiError
- type GetPublicKeyRequestValidationError
- func (e GetPublicKeyRequestValidationError) Cause() error
- func (e GetPublicKeyRequestValidationError) Error() string
- func (e GetPublicKeyRequestValidationError) ErrorName() string
- func (e GetPublicKeyRequestValidationError) Field() string
- func (e GetPublicKeyRequestValidationError) Key() bool
- func (e GetPublicKeyRequestValidationError) Reason() string
- type GetUniqueByIdManyReply
- func (*GetUniqueByIdManyReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUniqueByIdManyReply) GetUniqueId() string
- func (x *GetUniqueByIdManyReply) GetUserId() uint64
- func (*GetUniqueByIdManyReply) ProtoMessage()
- func (x *GetUniqueByIdManyReply) ProtoReflect() protoreflect.Message
- func (x *GetUniqueByIdManyReply) Reset()
- func (x *GetUniqueByIdManyReply) String() string
- func (m *GetUniqueByIdManyReply) Validate() error
- func (m *GetUniqueByIdManyReply) ValidateAll() error
- type GetUniqueByIdManyReplyMultiError
- type GetUniqueByIdManyReplyValidationError
- func (e GetUniqueByIdManyReplyValidationError) Cause() error
- func (e GetUniqueByIdManyReplyValidationError) Error() string
- func (e GetUniqueByIdManyReplyValidationError) ErrorName() string
- func (e GetUniqueByIdManyReplyValidationError) Field() string
- func (e GetUniqueByIdManyReplyValidationError) Key() bool
- func (e GetUniqueByIdManyReplyValidationError) Reason() string
- type GetUniqueByIdManyRequest
- func (*GetUniqueByIdManyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUniqueByIdManyRequest) GetUserId() uint64
- func (*GetUniqueByIdManyRequest) ProtoMessage()
- func (x *GetUniqueByIdManyRequest) ProtoReflect() protoreflect.Message
- func (x *GetUniqueByIdManyRequest) Reset()
- func (x *GetUniqueByIdManyRequest) String() string
- func (m *GetUniqueByIdManyRequest) Validate() error
- func (m *GetUniqueByIdManyRequest) ValidateAll() error
- type GetUniqueByIdManyRequestMultiError
- type GetUniqueByIdManyRequestValidationError
- func (e GetUniqueByIdManyRequestValidationError) Cause() error
- func (e GetUniqueByIdManyRequestValidationError) Error() string
- func (e GetUniqueByIdManyRequestValidationError) ErrorName() string
- func (e GetUniqueByIdManyRequestValidationError) Field() string
- func (e GetUniqueByIdManyRequestValidationError) Key() bool
- func (e GetUniqueByIdManyRequestValidationError) Reason() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) GetIdByUnique(context.Context, *GetIdByUniqueRequest) (*GetIdByUniqueReply, error)
- func (UnimplementedUserServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileReply, error)
- func (UnimplementedUserServer) GetPublicKey(context.Context, *GetPublicKeyRequest) (*GetPublicKeyReply, error)
- func (UnimplementedUserServer) GetUniqueByIdMany(context.Context, *GetUniqueByIdManyRequest) (*GetUniqueByIdManyReply, error)
- type UnsafeUserServer
- type UserClient
- type UserProfile
- func (*UserProfile) Descriptor() ([]byte, []int)deprecated
- func (x *UserProfile) GetBio() string
- func (x *UserProfile) GetBirthday() string
- func (x *UserProfile) GetGender() int32
- func (x *UserProfile) GetLocation() string
- func (x *UserProfile) GetNickname() string
- func (x *UserProfile) GetOther() string
- func (*UserProfile) ProtoMessage()
- func (x *UserProfile) ProtoReflect() protoreflect.Message
- func (x *UserProfile) Reset()
- func (x *UserProfile) String() string
- func (m *UserProfile) Validate() error
- func (m *UserProfile) ValidateAll() error
- type UserProfileMultiError
- type UserProfileValidationError
- func (e UserProfileValidationError) Cause() error
- func (e UserProfileValidationError) Error() string
- func (e UserProfileValidationError) ErrorName() string
- func (e UserProfileValidationError) Field() string
- func (e UserProfileValidationError) Key() bool
- func (e UserProfileValidationError) Reason() string
- type UserServer
Constants ¶
const ( User_GetIdByUnique_FullMethodName = "/api.user.v1.User/GetIdByUnique" User_GetUniqueByIdMany_FullMethodName = "/api.user.v1.User/GetUniqueByIdMany" User_GetProfile_FullMethodName = "/api.user.v1.User/GetProfile" User_GetPublicKey_FullMethodName = "/api.user.v1.User/GetPublicKey" )
Variables ¶
var File_api_user_v1_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.v1.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetIdByUnique", Handler: _User_GetIdByUnique_Handler, }, { MethodName: "GetUniqueByIdMany", Handler: _User_GetUniqueByIdMany_Handler, }, { MethodName: "GetProfile", Handler: _User_GetProfile_Handler, }, { MethodName: "GetPublicKey", Handler: _User_GetPublicKey_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/v1/user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type GetIdByUniqueReply ¶
type GetIdByUniqueReply struct {
UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetIdByUniqueReply) Descriptor
deprecated
func (*GetIdByUniqueReply) Descriptor() ([]byte, []int)
Deprecated: Use GetIdByUniqueReply.ProtoReflect.Descriptor instead.
func (*GetIdByUniqueReply) GetUserId ¶
func (x *GetIdByUniqueReply) GetUserId() uint64
func (*GetIdByUniqueReply) ProtoMessage ¶
func (*GetIdByUniqueReply) ProtoMessage()
func (*GetIdByUniqueReply) ProtoReflect ¶
func (x *GetIdByUniqueReply) ProtoReflect() protoreflect.Message
func (*GetIdByUniqueReply) Reset ¶
func (x *GetIdByUniqueReply) Reset()
func (*GetIdByUniqueReply) String ¶
func (x *GetIdByUniqueReply) String() string
func (*GetIdByUniqueReply) Validate ¶
func (m *GetIdByUniqueReply) Validate() error
Validate checks the field values on GetIdByUniqueReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetIdByUniqueReply) ValidateAll ¶
func (m *GetIdByUniqueReply) ValidateAll() error
ValidateAll checks the field values on GetIdByUniqueReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetIdByUniqueReplyMultiError, or nil if none found.
type GetIdByUniqueReplyMultiError ¶
type GetIdByUniqueReplyMultiError []error
GetIdByUniqueReplyMultiError is an error wrapping multiple validation errors returned by GetIdByUniqueReply.ValidateAll() if the designated constraints aren't met.
func (GetIdByUniqueReplyMultiError) AllErrors ¶
func (m GetIdByUniqueReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetIdByUniqueReplyMultiError) Error ¶
func (m GetIdByUniqueReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetIdByUniqueReplyValidationError ¶
type GetIdByUniqueReplyValidationError struct {
// contains filtered or unexported fields
}
GetIdByUniqueReplyValidationError is the validation error returned by GetIdByUniqueReply.Validate if the designated constraints aren't met.
func (GetIdByUniqueReplyValidationError) Cause ¶
func (e GetIdByUniqueReplyValidationError) Cause() error
Cause function returns cause value.
func (GetIdByUniqueReplyValidationError) Error ¶
func (e GetIdByUniqueReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetIdByUniqueReplyValidationError) ErrorName ¶
func (e GetIdByUniqueReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetIdByUniqueReplyValidationError) Field ¶
func (e GetIdByUniqueReplyValidationError) Field() string
Field function returns field value.
func (GetIdByUniqueReplyValidationError) Key ¶
func (e GetIdByUniqueReplyValidationError) Key() bool
Key function returns key value.
func (GetIdByUniqueReplyValidationError) Reason ¶
func (e GetIdByUniqueReplyValidationError) Reason() string
Reason function returns reason value.
type GetIdByUniqueRequest ¶
type GetIdByUniqueRequest struct {
UniqueId string `protobuf:"bytes,1,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetIdByUniqueRequest) Descriptor
deprecated
func (*GetIdByUniqueRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIdByUniqueRequest.ProtoReflect.Descriptor instead.
func (*GetIdByUniqueRequest) GetUniqueId ¶
func (x *GetIdByUniqueRequest) GetUniqueId() string
func (*GetIdByUniqueRequest) ProtoMessage ¶
func (*GetIdByUniqueRequest) ProtoMessage()
func (*GetIdByUniqueRequest) ProtoReflect ¶
func (x *GetIdByUniqueRequest) ProtoReflect() protoreflect.Message
func (*GetIdByUniqueRequest) Reset ¶
func (x *GetIdByUniqueRequest) Reset()
func (*GetIdByUniqueRequest) String ¶
func (x *GetIdByUniqueRequest) String() string
func (*GetIdByUniqueRequest) Validate ¶
func (m *GetIdByUniqueRequest) Validate() error
Validate checks the field values on GetIdByUniqueRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetIdByUniqueRequest) ValidateAll ¶
func (m *GetIdByUniqueRequest) ValidateAll() error
ValidateAll checks the field values on GetIdByUniqueRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetIdByUniqueRequestMultiError, or nil if none found.
type GetIdByUniqueRequestMultiError ¶
type GetIdByUniqueRequestMultiError []error
GetIdByUniqueRequestMultiError is an error wrapping multiple validation errors returned by GetIdByUniqueRequest.ValidateAll() if the designated constraints aren't met.
func (GetIdByUniqueRequestMultiError) AllErrors ¶
func (m GetIdByUniqueRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetIdByUniqueRequestMultiError) Error ¶
func (m GetIdByUniqueRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetIdByUniqueRequestValidationError ¶
type GetIdByUniqueRequestValidationError struct {
// contains filtered or unexported fields
}
GetIdByUniqueRequestValidationError is the validation error returned by GetIdByUniqueRequest.Validate if the designated constraints aren't met.
func (GetIdByUniqueRequestValidationError) Cause ¶
func (e GetIdByUniqueRequestValidationError) Cause() error
Cause function returns cause value.
func (GetIdByUniqueRequestValidationError) Error ¶
func (e GetIdByUniqueRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetIdByUniqueRequestValidationError) ErrorName ¶
func (e GetIdByUniqueRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetIdByUniqueRequestValidationError) Field ¶
func (e GetIdByUniqueRequestValidationError) Field() string
Field function returns field value.
func (GetIdByUniqueRequestValidationError) Key ¶
func (e GetIdByUniqueRequestValidationError) Key() bool
Key function returns key value.
func (GetIdByUniqueRequestValidationError) Reason ¶
func (e GetIdByUniqueRequestValidationError) Reason() string
Reason function returns reason value.
type GetProfileReply ¶
type GetProfileReply struct {
Profile *UserProfile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*GetProfileReply) Descriptor
deprecated
func (*GetProfileReply) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileReply.ProtoReflect.Descriptor instead.
func (*GetProfileReply) GetMsg ¶
func (x *GetProfileReply) GetMsg() string
func (*GetProfileReply) GetPhone ¶
func (x *GetProfileReply) GetPhone() string
func (*GetProfileReply) GetProfile ¶
func (x *GetProfileReply) GetProfile() *UserProfile
func (*GetProfileReply) ProtoMessage ¶
func (*GetProfileReply) ProtoMessage()
func (*GetProfileReply) ProtoReflect ¶
func (x *GetProfileReply) ProtoReflect() protoreflect.Message
func (*GetProfileReply) Reset ¶
func (x *GetProfileReply) Reset()
func (*GetProfileReply) String ¶
func (x *GetProfileReply) String() string
func (*GetProfileReply) Validate ¶
func (m *GetProfileReply) Validate() error
Validate checks the field values on GetProfileReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetProfileReply) ValidateAll ¶
func (m *GetProfileReply) ValidateAll() error
ValidateAll checks the field values on GetProfileReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetProfileReplyMultiError, or nil if none found.
type GetProfileReplyMultiError ¶
type GetProfileReplyMultiError []error
GetProfileReplyMultiError is an error wrapping multiple validation errors returned by GetProfileReply.ValidateAll() if the designated constraints aren't met.
func (GetProfileReplyMultiError) AllErrors ¶
func (m GetProfileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetProfileReplyMultiError) Error ¶
func (m GetProfileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetProfileReplyValidationError ¶
type GetProfileReplyValidationError struct {
// contains filtered or unexported fields
}
GetProfileReplyValidationError is the validation error returned by GetProfileReply.Validate if the designated constraints aren't met.
func (GetProfileReplyValidationError) Cause ¶
func (e GetProfileReplyValidationError) Cause() error
Cause function returns cause value.
func (GetProfileReplyValidationError) Error ¶
func (e GetProfileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetProfileReplyValidationError) ErrorName ¶
func (e GetProfileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetProfileReplyValidationError) Field ¶
func (e GetProfileReplyValidationError) Field() string
Field function returns field value.
func (GetProfileReplyValidationError) Key ¶
func (e GetProfileReplyValidationError) Key() bool
Key function returns key value.
func (GetProfileReplyValidationError) Reason ¶
func (e GetProfileReplyValidationError) Reason() string
Reason function returns reason value.
type GetProfileRequest ¶
type GetProfileRequest struct {
UniqueId string `protobuf:"bytes,1,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetProfileRequest) Descriptor
deprecated
func (*GetProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.
func (*GetProfileRequest) GetUniqueId ¶
func (x *GetProfileRequest) GetUniqueId() 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
func (*GetProfileRequest) Validate ¶
func (m *GetProfileRequest) Validate() error
Validate checks the field values on GetProfileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetProfileRequest) ValidateAll ¶
func (m *GetProfileRequest) ValidateAll() error
ValidateAll checks the field values on GetProfileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetProfileRequestMultiError, or nil if none found.
type GetProfileRequestMultiError ¶
type GetProfileRequestMultiError []error
GetProfileRequestMultiError is an error wrapping multiple validation errors returned by GetProfileRequest.ValidateAll() if the designated constraints aren't met.
func (GetProfileRequestMultiError) AllErrors ¶
func (m GetProfileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetProfileRequestMultiError) Error ¶
func (m GetProfileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetProfileRequestValidationError ¶
type GetProfileRequestValidationError struct {
// contains filtered or unexported fields
}
GetProfileRequestValidationError is the validation error returned by GetProfileRequest.Validate if the designated constraints aren't met.
func (GetProfileRequestValidationError) Cause ¶
func (e GetProfileRequestValidationError) Cause() error
Cause function returns cause value.
func (GetProfileRequestValidationError) Error ¶
func (e GetProfileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetProfileRequestValidationError) ErrorName ¶
func (e GetProfileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetProfileRequestValidationError) Field ¶
func (e GetProfileRequestValidationError) Field() string
Field function returns field value.
func (GetProfileRequestValidationError) Key ¶
func (e GetProfileRequestValidationError) Key() bool
Key function returns key value.
func (GetProfileRequestValidationError) Reason ¶
func (e GetProfileRequestValidationError) Reason() string
Reason function returns reason value.
type GetPublicKeyReply ¶
type GetPublicKeyReply struct {
PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// contains filtered or unexported fields
}
func (*GetPublicKeyReply) Descriptor
deprecated
func (*GetPublicKeyReply) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicKeyReply.ProtoReflect.Descriptor instead.
func (*GetPublicKeyReply) GetPublicKey ¶
func (x *GetPublicKeyReply) GetPublicKey() string
func (*GetPublicKeyReply) ProtoMessage ¶
func (*GetPublicKeyReply) ProtoMessage()
func (*GetPublicKeyReply) ProtoReflect ¶
func (x *GetPublicKeyReply) ProtoReflect() protoreflect.Message
func (*GetPublicKeyReply) Reset ¶
func (x *GetPublicKeyReply) Reset()
func (*GetPublicKeyReply) String ¶
func (x *GetPublicKeyReply) String() string
func (*GetPublicKeyReply) Validate ¶
func (m *GetPublicKeyReply) Validate() error
Validate checks the field values on GetPublicKeyReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetPublicKeyReply) ValidateAll ¶
func (m *GetPublicKeyReply) ValidateAll() error
ValidateAll checks the field values on GetPublicKeyReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetPublicKeyReplyMultiError, or nil if none found.
type GetPublicKeyReplyMultiError ¶
type GetPublicKeyReplyMultiError []error
GetPublicKeyReplyMultiError is an error wrapping multiple validation errors returned by GetPublicKeyReply.ValidateAll() if the designated constraints aren't met.
func (GetPublicKeyReplyMultiError) AllErrors ¶
func (m GetPublicKeyReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPublicKeyReplyMultiError) Error ¶
func (m GetPublicKeyReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPublicKeyReplyValidationError ¶
type GetPublicKeyReplyValidationError struct {
// contains filtered or unexported fields
}
GetPublicKeyReplyValidationError is the validation error returned by GetPublicKeyReply.Validate if the designated constraints aren't met.
func (GetPublicKeyReplyValidationError) Cause ¶
func (e GetPublicKeyReplyValidationError) Cause() error
Cause function returns cause value.
func (GetPublicKeyReplyValidationError) Error ¶
func (e GetPublicKeyReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetPublicKeyReplyValidationError) ErrorName ¶
func (e GetPublicKeyReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetPublicKeyReplyValidationError) Field ¶
func (e GetPublicKeyReplyValidationError) Field() string
Field function returns field value.
func (GetPublicKeyReplyValidationError) Key ¶
func (e GetPublicKeyReplyValidationError) Key() bool
Key function returns key value.
func (GetPublicKeyReplyValidationError) Reason ¶
func (e GetPublicKeyReplyValidationError) Reason() string
Reason function returns reason value.
type GetPublicKeyRequest ¶
type GetPublicKeyRequest struct {
UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetPublicKeyRequest) Descriptor
deprecated
func (*GetPublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicKeyRequest.ProtoReflect.Descriptor instead.
func (*GetPublicKeyRequest) GetUserId ¶
func (x *GetPublicKeyRequest) GetUserId() uint64
func (*GetPublicKeyRequest) ProtoMessage ¶
func (*GetPublicKeyRequest) ProtoMessage()
func (*GetPublicKeyRequest) ProtoReflect ¶
func (x *GetPublicKeyRequest) ProtoReflect() protoreflect.Message
func (*GetPublicKeyRequest) Reset ¶
func (x *GetPublicKeyRequest) Reset()
func (*GetPublicKeyRequest) String ¶
func (x *GetPublicKeyRequest) String() string
func (*GetPublicKeyRequest) Validate ¶
func (m *GetPublicKeyRequest) Validate() error
Validate checks the field values on GetPublicKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetPublicKeyRequest) ValidateAll ¶
func (m *GetPublicKeyRequest) ValidateAll() error
ValidateAll checks the field values on GetPublicKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetPublicKeyRequestMultiError, or nil if none found.
type GetPublicKeyRequestMultiError ¶
type GetPublicKeyRequestMultiError []error
GetPublicKeyRequestMultiError is an error wrapping multiple validation errors returned by GetPublicKeyRequest.ValidateAll() if the designated constraints aren't met.
func (GetPublicKeyRequestMultiError) AllErrors ¶
func (m GetPublicKeyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPublicKeyRequestMultiError) Error ¶
func (m GetPublicKeyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPublicKeyRequestValidationError ¶
type GetPublicKeyRequestValidationError struct {
// contains filtered or unexported fields
}
GetPublicKeyRequestValidationError is the validation error returned by GetPublicKeyRequest.Validate if the designated constraints aren't met.
func (GetPublicKeyRequestValidationError) Cause ¶
func (e GetPublicKeyRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPublicKeyRequestValidationError) Error ¶
func (e GetPublicKeyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPublicKeyRequestValidationError) ErrorName ¶
func (e GetPublicKeyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPublicKeyRequestValidationError) Field ¶
func (e GetPublicKeyRequestValidationError) Field() string
Field function returns field value.
func (GetPublicKeyRequestValidationError) Key ¶
func (e GetPublicKeyRequestValidationError) Key() bool
Key function returns key value.
func (GetPublicKeyRequestValidationError) Reason ¶
func (e GetPublicKeyRequestValidationError) Reason() string
Reason function returns reason value.
type GetUniqueByIdManyReply ¶
type GetUniqueByIdManyReply struct {
UniqueId string `protobuf:"bytes,1,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetUniqueByIdManyReply) Descriptor
deprecated
func (*GetUniqueByIdManyReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUniqueByIdManyReply.ProtoReflect.Descriptor instead.
func (*GetUniqueByIdManyReply) GetUniqueId ¶
func (x *GetUniqueByIdManyReply) GetUniqueId() string
func (*GetUniqueByIdManyReply) GetUserId ¶
func (x *GetUniqueByIdManyReply) GetUserId() uint64
func (*GetUniqueByIdManyReply) ProtoMessage ¶
func (*GetUniqueByIdManyReply) ProtoMessage()
func (*GetUniqueByIdManyReply) ProtoReflect ¶
func (x *GetUniqueByIdManyReply) ProtoReflect() protoreflect.Message
func (*GetUniqueByIdManyReply) Reset ¶
func (x *GetUniqueByIdManyReply) Reset()
func (*GetUniqueByIdManyReply) String ¶
func (x *GetUniqueByIdManyReply) String() string
func (*GetUniqueByIdManyReply) Validate ¶
func (m *GetUniqueByIdManyReply) Validate() error
Validate checks the field values on GetUniqueByIdManyReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUniqueByIdManyReply) ValidateAll ¶
func (m *GetUniqueByIdManyReply) ValidateAll() error
ValidateAll checks the field values on GetUniqueByIdManyReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUniqueByIdManyReplyMultiError, or nil if none found.
type GetUniqueByIdManyReplyMultiError ¶
type GetUniqueByIdManyReplyMultiError []error
GetUniqueByIdManyReplyMultiError is an error wrapping multiple validation errors returned by GetUniqueByIdManyReply.ValidateAll() if the designated constraints aren't met.
func (GetUniqueByIdManyReplyMultiError) AllErrors ¶
func (m GetUniqueByIdManyReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUniqueByIdManyReplyMultiError) Error ¶
func (m GetUniqueByIdManyReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUniqueByIdManyReplyValidationError ¶
type GetUniqueByIdManyReplyValidationError struct {
// contains filtered or unexported fields
}
GetUniqueByIdManyReplyValidationError is the validation error returned by GetUniqueByIdManyReply.Validate if the designated constraints aren't met.
func (GetUniqueByIdManyReplyValidationError) Cause ¶
func (e GetUniqueByIdManyReplyValidationError) Cause() error
Cause function returns cause value.
func (GetUniqueByIdManyReplyValidationError) Error ¶
func (e GetUniqueByIdManyReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetUniqueByIdManyReplyValidationError) ErrorName ¶
func (e GetUniqueByIdManyReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetUniqueByIdManyReplyValidationError) Field ¶
func (e GetUniqueByIdManyReplyValidationError) Field() string
Field function returns field value.
func (GetUniqueByIdManyReplyValidationError) Key ¶
func (e GetUniqueByIdManyReplyValidationError) Key() bool
Key function returns key value.
func (GetUniqueByIdManyReplyValidationError) Reason ¶
func (e GetUniqueByIdManyReplyValidationError) Reason() string
Reason function returns reason value.
type GetUniqueByIdManyRequest ¶
type GetUniqueByIdManyRequest struct {
UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetUniqueByIdManyRequest) Descriptor
deprecated
func (*GetUniqueByIdManyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUniqueByIdManyRequest.ProtoReflect.Descriptor instead.
func (*GetUniqueByIdManyRequest) GetUserId ¶
func (x *GetUniqueByIdManyRequest) GetUserId() uint64
func (*GetUniqueByIdManyRequest) ProtoMessage ¶
func (*GetUniqueByIdManyRequest) ProtoMessage()
func (*GetUniqueByIdManyRequest) ProtoReflect ¶
func (x *GetUniqueByIdManyRequest) ProtoReflect() protoreflect.Message
func (*GetUniqueByIdManyRequest) Reset ¶
func (x *GetUniqueByIdManyRequest) Reset()
func (*GetUniqueByIdManyRequest) String ¶
func (x *GetUniqueByIdManyRequest) String() string
func (*GetUniqueByIdManyRequest) Validate ¶
func (m *GetUniqueByIdManyRequest) Validate() error
Validate checks the field values on GetUniqueByIdManyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUniqueByIdManyRequest) ValidateAll ¶
func (m *GetUniqueByIdManyRequest) ValidateAll() error
ValidateAll checks the field values on GetUniqueByIdManyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUniqueByIdManyRequestMultiError, or nil if none found.
type GetUniqueByIdManyRequestMultiError ¶
type GetUniqueByIdManyRequestMultiError []error
GetUniqueByIdManyRequestMultiError is an error wrapping multiple validation errors returned by GetUniqueByIdManyRequest.ValidateAll() if the designated constraints aren't met.
func (GetUniqueByIdManyRequestMultiError) AllErrors ¶
func (m GetUniqueByIdManyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUniqueByIdManyRequestMultiError) Error ¶
func (m GetUniqueByIdManyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUniqueByIdManyRequestValidationError ¶
type GetUniqueByIdManyRequestValidationError struct {
// contains filtered or unexported fields
}
GetUniqueByIdManyRequestValidationError is the validation error returned by GetUniqueByIdManyRequest.Validate if the designated constraints aren't met.
func (GetUniqueByIdManyRequestValidationError) Cause ¶
func (e GetUniqueByIdManyRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUniqueByIdManyRequestValidationError) Error ¶
func (e GetUniqueByIdManyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUniqueByIdManyRequestValidationError) ErrorName ¶
func (e GetUniqueByIdManyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUniqueByIdManyRequestValidationError) Field ¶
func (e GetUniqueByIdManyRequestValidationError) Field() string
Field function returns field value.
func (GetUniqueByIdManyRequestValidationError) Key ¶
func (e GetUniqueByIdManyRequestValidationError) Key() bool
Key function returns key value.
func (GetUniqueByIdManyRequestValidationError) Reason ¶
func (e GetUniqueByIdManyRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedUserServer ¶
type UnimplementedUserServer struct{}
UnimplementedUserServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedUserServer) GetIdByUnique ¶
func (UnimplementedUserServer) GetIdByUnique(context.Context, *GetIdByUniqueRequest) (*GetIdByUniqueReply, error)
func (UnimplementedUserServer) GetProfile ¶
func (UnimplementedUserServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileReply, error)
func (UnimplementedUserServer) GetPublicKey ¶
func (UnimplementedUserServer) GetPublicKey(context.Context, *GetPublicKeyRequest) (*GetPublicKeyReply, error)
func (UnimplementedUserServer) GetUniqueByIdMany ¶
func (UnimplementedUserServer) GetUniqueByIdMany(context.Context, *GetUniqueByIdManyRequest) (*GetUniqueByIdManyReply, error)
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UserClient ¶
type UserClient interface {
GetIdByUnique(ctx context.Context, in *GetIdByUniqueRequest, opts ...grpc.CallOption) (*GetIdByUniqueReply, error)
GetUniqueByIdMany(ctx context.Context, in *GetUniqueByIdManyRequest, opts ...grpc.CallOption) (*GetUniqueByIdManyReply, error)
GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileReply, error)
GetPublicKey(ctx context.Context, in *GetPublicKeyRequest, opts ...grpc.CallOption) (*GetPublicKeyReply, error)
}
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserProfile ¶
type UserProfile struct {
Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` //中文、英语、数字、下划线、emoji
Bio string `protobuf:"bytes,3,opt,name=bio,proto3" json:"bio,omitempty"` // 最长 200 个字符
Gender int32 `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"` // 性别只能是 0(未知)、1(男)、2(女)
Birthday string `protobuf:"bytes,5,opt,name=birthday,proto3" json:"birthday,omitempty"` // YYYY-MM-DD 格式
Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"` // 位置格式:国家/城市
Other string `protobuf:"bytes,7,opt,name=other,proto3" json:"other,omitempty"`
// contains filtered or unexported fields
}
func (*UserProfile) Descriptor
deprecated
func (*UserProfile) Descriptor() ([]byte, []int)
Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.
func (*UserProfile) GetBio ¶
func (x *UserProfile) GetBio() string
func (*UserProfile) GetBirthday ¶
func (x *UserProfile) GetBirthday() string
func (*UserProfile) GetGender ¶
func (x *UserProfile) GetGender() int32
func (*UserProfile) GetLocation ¶
func (x *UserProfile) GetLocation() string
func (*UserProfile) GetNickname ¶
func (x *UserProfile) GetNickname() string
func (*UserProfile) GetOther ¶
func (x *UserProfile) GetOther() string
func (*UserProfile) ProtoMessage ¶
func (*UserProfile) ProtoMessage()
func (*UserProfile) ProtoReflect ¶
func (x *UserProfile) ProtoReflect() protoreflect.Message
func (*UserProfile) Reset ¶
func (x *UserProfile) Reset()
func (*UserProfile) String ¶
func (x *UserProfile) String() string
func (*UserProfile) Validate ¶
func (m *UserProfile) Validate() error
Validate checks the field values on UserProfile with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserProfile) ValidateAll ¶
func (m *UserProfile) ValidateAll() error
ValidateAll checks the field values on UserProfile with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserProfileMultiError, or nil if none found.
type UserProfileMultiError ¶
type UserProfileMultiError []error
UserProfileMultiError is an error wrapping multiple validation errors returned by UserProfile.ValidateAll() if the designated constraints aren't met.
func (UserProfileMultiError) AllErrors ¶
func (m UserProfileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserProfileMultiError) Error ¶
func (m UserProfileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserProfileValidationError ¶
type UserProfileValidationError struct {
// contains filtered or unexported fields
}
UserProfileValidationError is the validation error returned by UserProfile.Validate if the designated constraints aren't met.
func (UserProfileValidationError) Cause ¶
func (e UserProfileValidationError) Cause() error
Cause function returns cause value.
func (UserProfileValidationError) Error ¶
func (e UserProfileValidationError) Error() string
Error satisfies the builtin error interface
func (UserProfileValidationError) ErrorName ¶
func (e UserProfileValidationError) ErrorName() string
ErrorName returns error name.
func (UserProfileValidationError) Field ¶
func (e UserProfileValidationError) Field() string
Field function returns field value.
func (UserProfileValidationError) Key ¶
func (e UserProfileValidationError) Key() bool
Key function returns key value.
func (UserProfileValidationError) Reason ¶
func (e UserProfileValidationError) Reason() string
Reason function returns reason value.
type UserServer ¶
type UserServer interface {
GetIdByUnique(context.Context, *GetIdByUniqueRequest) (*GetIdByUniqueReply, error)
GetUniqueByIdMany(context.Context, *GetUniqueByIdManyRequest) (*GetUniqueByIdManyReply, error)
GetProfile(context.Context, *GetProfileRequest) (*GetProfileReply, error)
GetPublicKey(context.Context, *GetPublicKeyRequest) (*GetPublicKeyReply, error)
// contains filtered or unexported methods
}
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility.