v1

package
v0.0.0-...-2a7cc9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_api_user_v1_user_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (GetIdByUniqueReplyValidationError) Error

Error satisfies the builtin error interface

func (GetIdByUniqueReplyValidationError) ErrorName

ErrorName returns error name.

func (GetIdByUniqueReplyValidationError) Field

Field function returns field value.

func (GetIdByUniqueReplyValidationError) Key

Key function returns key value.

func (GetIdByUniqueReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetIdByUniqueRequestValidationError) Error

Error satisfies the builtin error interface

func (GetIdByUniqueRequestValidationError) ErrorName

ErrorName returns error name.

func (GetIdByUniqueRequestValidationError) Field

Field function returns field value.

func (GetIdByUniqueRequestValidationError) Key

Key function returns key value.

func (GetIdByUniqueRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetProfileReplyValidationError) Error

Error satisfies the builtin error interface

func (GetProfileReplyValidationError) ErrorName

func (e GetProfileReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetProfileReplyValidationError) Field

Field function returns field value.

func (GetProfileReplyValidationError) Key

Key function returns key value.

func (GetProfileReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetProfileRequestValidationError) Error

Error satisfies the builtin error interface

func (GetProfileRequestValidationError) ErrorName

ErrorName returns error name.

func (GetProfileRequestValidationError) Field

Field function returns field value.

func (GetProfileRequestValidationError) Key

Key function returns key value.

func (GetProfileRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetPublicKeyReplyValidationError) Error

Error satisfies the builtin error interface

func (GetPublicKeyReplyValidationError) ErrorName

ErrorName returns error name.

func (GetPublicKeyReplyValidationError) Field

Field function returns field value.

func (GetPublicKeyReplyValidationError) Key

Key function returns key value.

func (GetPublicKeyReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetPublicKeyRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPublicKeyRequestValidationError) ErrorName

ErrorName returns error name.

func (GetPublicKeyRequestValidationError) Field

Field function returns field value.

func (GetPublicKeyRequestValidationError) Key

Key function returns key value.

func (GetPublicKeyRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetUniqueByIdManyReplyValidationError) Error

Error satisfies the builtin error interface

func (GetUniqueByIdManyReplyValidationError) ErrorName

ErrorName returns error name.

func (GetUniqueByIdManyReplyValidationError) Field

Field function returns field value.

func (GetUniqueByIdManyReplyValidationError) Key

Key function returns key value.

func (GetUniqueByIdManyReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetUniqueByIdManyRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUniqueByIdManyRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUniqueByIdManyRequestValidationError) Field

Field function returns field value.

func (GetUniqueByIdManyRequestValidationError) Key

Key function returns key value.

func (GetUniqueByIdManyRequestValidationError) Reason

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) GetProfile

func (UnimplementedUserServer) GetPublicKey

func (UnimplementedUserServer) GetUniqueByIdMany

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

Cause function returns cause value.

func (UserProfileValidationError) Error

Error satisfies the builtin error interface

func (UserProfileValidationError) ErrorName

func (e UserProfileValidationError) ErrorName() string

ErrorName returns error name.

func (UserProfileValidationError) Field

Field function returns field value.

func (UserProfileValidationError) Key

Key function returns key value.

func (UserProfileValidationError) Reason

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL