v1

package
v0.0.0-...-a7198d8 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthUser        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUser          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUser = fmt.Errorf("proto: unexpected end of group")
)
View Source
var GenderType_name = map[int32]string{
	0: "UNKNOWN",
	1: "MALE",
	2: "FEMALE",
}
View Source
var GenderType_value = map[string]int32{
	"UNKNOWN": 0,
	"MALE":    1,
	"FEMALE":  2,
}
View Source
var StatusType_name = map[int32]string{
	0: "NORMAL",
	1: "DELETE",
	2: "Ban",
}
View Source
var StatusType_value = map[string]int32{
	"NORMAL": 0,
	"DELETE": 1,
	"Ban":    2,
}
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _UserService_Register_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _UserService_Login_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _UserService_Logout_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "BatchGetUsers",
			Handler:    _UserService_BatchGetUsers_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "UpdatePassword",
			Handler:    _UserService_UpdatePassword_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/user/v1/user.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUserServiceHTTPServer

func RegisterUserServiceHTTPServer(r gin.IRouter, srv UserServiceHTTPServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type BatchGetUsersReply

type BatchGetUsersReply struct {
	Users                []*User  `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BatchGetUsersReply) Descriptor

func (*BatchGetUsersReply) Descriptor() ([]byte, []int)

func (*BatchGetUsersReply) GetUsers

func (m *BatchGetUsersReply) GetUsers() []*User

func (*BatchGetUsersReply) Marshal

func (m *BatchGetUsersReply) Marshal() (dAtA []byte, err error)

func (*BatchGetUsersReply) MarshalTo

func (m *BatchGetUsersReply) MarshalTo(dAtA []byte) (int, error)

func (*BatchGetUsersReply) MarshalToSizedBuffer

func (m *BatchGetUsersReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchGetUsersReply) ProtoMessage

func (*BatchGetUsersReply) ProtoMessage()

func (*BatchGetUsersReply) Reset

func (m *BatchGetUsersReply) Reset()

func (*BatchGetUsersReply) Size

func (m *BatchGetUsersReply) Size() (n int)

func (*BatchGetUsersReply) String

func (m *BatchGetUsersReply) String() string

func (*BatchGetUsersReply) Unmarshal

func (m *BatchGetUsersReply) Unmarshal(dAtA []byte) error

func (*BatchGetUsersReply) Validate

func (m *BatchGetUsersReply) Validate() error

Validate checks the field values on BatchGetUsersReply 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 (*BatchGetUsersReply) ValidateAll

func (m *BatchGetUsersReply) ValidateAll() error

ValidateAll checks the field values on BatchGetUsersReply 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 BatchGetUsersReplyMultiError, or nil if none found.

func (*BatchGetUsersReply) XXX_DiscardUnknown

func (m *BatchGetUsersReply) XXX_DiscardUnknown()

func (*BatchGetUsersReply) XXX_Marshal

func (m *BatchGetUsersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchGetUsersReply) XXX_Merge

func (m *BatchGetUsersReply) XXX_Merge(src proto.Message)

func (*BatchGetUsersReply) XXX_Size

func (m *BatchGetUsersReply) XXX_Size() int

func (*BatchGetUsersReply) XXX_Unmarshal

func (m *BatchGetUsersReply) XXX_Unmarshal(b []byte) error

type BatchGetUsersReplyMultiError

type BatchGetUsersReplyMultiError []error

BatchGetUsersReplyMultiError is an error wrapping multiple validation errors returned by BatchGetUsersReply.ValidateAll() if the designated constraints aren't met.

func (BatchGetUsersReplyMultiError) AllErrors

func (m BatchGetUsersReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchGetUsersReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BatchGetUsersReplyValidationError

type BatchGetUsersReplyValidationError struct {
	// contains filtered or unexported fields
}

BatchGetUsersReplyValidationError is the validation error returned by BatchGetUsersReply.Validate if the designated constraints aren't met.

func (BatchGetUsersReplyValidationError) Cause

Cause function returns cause value.

func (BatchGetUsersReplyValidationError) Error

Error satisfies the builtin error interface

func (BatchGetUsersReplyValidationError) ErrorName

ErrorName returns error name.

func (BatchGetUsersReplyValidationError) Field

Field function returns field value.

func (BatchGetUsersReplyValidationError) Key

Key function returns key value.

func (BatchGetUsersReplyValidationError) Reason

Reason function returns reason value.

type BatchGetUsersRequest

type BatchGetUsersRequest struct {
	Ids                  []int64  `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BatchGetUsersRequest) Descriptor

func (*BatchGetUsersRequest) Descriptor() ([]byte, []int)

func (*BatchGetUsersRequest) GetIds

func (m *BatchGetUsersRequest) GetIds() []int64

func (*BatchGetUsersRequest) Marshal

func (m *BatchGetUsersRequest) Marshal() (dAtA []byte, err error)

func (*BatchGetUsersRequest) MarshalTo

func (m *BatchGetUsersRequest) MarshalTo(dAtA []byte) (int, error)

func (*BatchGetUsersRequest) MarshalToSizedBuffer

func (m *BatchGetUsersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchGetUsersRequest) ProtoMessage

func (*BatchGetUsersRequest) ProtoMessage()

func (*BatchGetUsersRequest) Reset

func (m *BatchGetUsersRequest) Reset()

func (*BatchGetUsersRequest) Size

func (m *BatchGetUsersRequest) Size() (n int)

func (*BatchGetUsersRequest) String

func (m *BatchGetUsersRequest) String() string

func (*BatchGetUsersRequest) Unmarshal

func (m *BatchGetUsersRequest) Unmarshal(dAtA []byte) error

func (*BatchGetUsersRequest) Validate

func (m *BatchGetUsersRequest) Validate() error

Validate checks the field values on BatchGetUsersRequest 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 (*BatchGetUsersRequest) ValidateAll

func (m *BatchGetUsersRequest) ValidateAll() error

ValidateAll checks the field values on BatchGetUsersRequest 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 BatchGetUsersRequestMultiError, or nil if none found.

func (*BatchGetUsersRequest) XXX_DiscardUnknown

func (m *BatchGetUsersRequest) XXX_DiscardUnknown()

func (*BatchGetUsersRequest) XXX_Marshal

func (m *BatchGetUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchGetUsersRequest) XXX_Merge

func (m *BatchGetUsersRequest) XXX_Merge(src proto.Message)

func (*BatchGetUsersRequest) XXX_Size

func (m *BatchGetUsersRequest) XXX_Size() int

func (*BatchGetUsersRequest) XXX_Unmarshal

func (m *BatchGetUsersRequest) XXX_Unmarshal(b []byte) error

type BatchGetUsersRequestMultiError

type BatchGetUsersRequestMultiError []error

BatchGetUsersRequestMultiError is an error wrapping multiple validation errors returned by BatchGetUsersRequest.ValidateAll() if the designated constraints aren't met.

func (BatchGetUsersRequestMultiError) AllErrors

func (m BatchGetUsersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchGetUsersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BatchGetUsersRequestValidationError

type BatchGetUsersRequestValidationError struct {
	// contains filtered or unexported fields
}

BatchGetUsersRequestValidationError is the validation error returned by BatchGetUsersRequest.Validate if the designated constraints aren't met.

func (BatchGetUsersRequestValidationError) Cause

Cause function returns cause value.

func (BatchGetUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (BatchGetUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (BatchGetUsersRequestValidationError) Field

Field function returns field value.

func (BatchGetUsersRequestValidationError) Key

Key function returns key value.

func (BatchGetUsersRequestValidationError) Reason

Reason function returns reason value.

type CreateUserReply

type CreateUserReply struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email                string   `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateUserReply) Descriptor

func (*CreateUserReply) Descriptor() ([]byte, []int)

func (*CreateUserReply) GetEmail

func (m *CreateUserReply) GetEmail() string

func (*CreateUserReply) GetId

func (m *CreateUserReply) GetId() int64

func (*CreateUserReply) GetUsername

func (m *CreateUserReply) GetUsername() string

func (*CreateUserReply) Marshal

func (m *CreateUserReply) Marshal() (dAtA []byte, err error)

func (*CreateUserReply) MarshalTo

func (m *CreateUserReply) MarshalTo(dAtA []byte) (int, error)

func (*CreateUserReply) MarshalToSizedBuffer

func (m *CreateUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateUserReply) ProtoMessage

func (*CreateUserReply) ProtoMessage()

func (*CreateUserReply) Reset

func (m *CreateUserReply) Reset()

func (*CreateUserReply) Size

func (m *CreateUserReply) Size() (n int)

func (*CreateUserReply) String

func (m *CreateUserReply) String() string

func (*CreateUserReply) Unmarshal

func (m *CreateUserReply) Unmarshal(dAtA []byte) error

func (*CreateUserReply) Validate

func (m *CreateUserReply) Validate() error

Validate checks the field values on CreateUserReply 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 (*CreateUserReply) ValidateAll

func (m *CreateUserReply) ValidateAll() error

ValidateAll checks the field values on CreateUserReply 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 CreateUserReplyMultiError, or nil if none found.

func (*CreateUserReply) XXX_DiscardUnknown

func (m *CreateUserReply) XXX_DiscardUnknown()

func (*CreateUserReply) XXX_Marshal

func (m *CreateUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateUserReply) XXX_Merge

func (m *CreateUserReply) XXX_Merge(src proto.Message)

func (*CreateUserReply) XXX_Size

func (m *CreateUserReply) XXX_Size() int

func (*CreateUserReply) XXX_Unmarshal

func (m *CreateUserReply) XXX_Unmarshal(b []byte) error

type CreateUserReplyMultiError

type CreateUserReplyMultiError []error

CreateUserReplyMultiError is an error wrapping multiple validation errors returned by CreateUserReply.ValidateAll() if the designated constraints aren't met.

func (CreateUserReplyMultiError) AllErrors

func (m CreateUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserReplyValidationError

type CreateUserReplyValidationError struct {
	// contains filtered or unexported fields
}

CreateUserReplyValidationError is the validation error returned by CreateUserReply.Validate if the designated constraints aren't met.

func (CreateUserReplyValidationError) Cause

Cause function returns cause value.

func (CreateUserReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateUserReplyValidationError) ErrorName

func (e CreateUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateUserReplyValidationError) Field

Field function returns field value.

func (CreateUserReplyValidationError) Key

Key function returns key value.

func (CreateUserReplyValidationError) Reason

Reason function returns reason value.

type CreateUserRequest

type CreateUserRequest struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Email                string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Password             string   `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateUserRequest) Descriptor

func (*CreateUserRequest) Descriptor() ([]byte, []int)

func (*CreateUserRequest) GetEmail

func (m *CreateUserRequest) GetEmail() string

func (*CreateUserRequest) GetPassword

func (m *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetUsername

func (m *CreateUserRequest) GetUsername() string

func (*CreateUserRequest) Marshal

func (m *CreateUserRequest) Marshal() (dAtA []byte, err error)

func (*CreateUserRequest) MarshalTo

func (m *CreateUserRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateUserRequest) MarshalToSizedBuffer

func (m *CreateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) Reset

func (m *CreateUserRequest) Reset()

func (*CreateUserRequest) Size

func (m *CreateUserRequest) Size() (n int)

func (*CreateUserRequest) String

func (m *CreateUserRequest) String() string

func (*CreateUserRequest) Unmarshal

func (m *CreateUserRequest) Unmarshal(dAtA []byte) error

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() error

Validate checks the field values on CreateUserRequest 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 (*CreateUserRequest) ValidateAll

func (m *CreateUserRequest) ValidateAll() error

ValidateAll checks the field values on CreateUserRequest 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 CreateUserRequestMultiError, or nil if none found.

func (*CreateUserRequest) XXX_DiscardUnknown

func (m *CreateUserRequest) XXX_DiscardUnknown()

func (*CreateUserRequest) XXX_Marshal

func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateUserRequest) XXX_Merge

func (m *CreateUserRequest) XXX_Merge(src proto.Message)

func (*CreateUserRequest) XXX_Size

func (m *CreateUserRequest) XXX_Size() int

func (*CreateUserRequest) XXX_Unmarshal

func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error

type CreateUserRequestMultiError

type CreateUserRequestMultiError []error

CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.

func (CreateUserRequestMultiError) AllErrors

func (m CreateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserRequestValidationError

type CreateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.

func (CreateUserRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

Reason function returns reason value.

type GenderType

type GenderType int32

性别

const (
	GenderType_UNKNOWN GenderType = 0
	GenderType_MALE    GenderType = 1
	GenderType_FEMALE  GenderType = 2
)

func (GenderType) EnumDescriptor

func (GenderType) EnumDescriptor() ([]byte, []int)

func (GenderType) String

func (x GenderType) String() string

type GetUserReply

type GetUserReply struct {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserReply) Descriptor

func (*GetUserReply) Descriptor() ([]byte, []int)

func (*GetUserReply) GetUser

func (m *GetUserReply) GetUser() *User

func (*GetUserReply) Marshal

func (m *GetUserReply) Marshal() (dAtA []byte, err error)

func (*GetUserReply) MarshalTo

func (m *GetUserReply) MarshalTo(dAtA []byte) (int, error)

func (*GetUserReply) MarshalToSizedBuffer

func (m *GetUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetUserReply) ProtoMessage

func (*GetUserReply) ProtoMessage()

func (*GetUserReply) Reset

func (m *GetUserReply) Reset()

func (*GetUserReply) Size

func (m *GetUserReply) Size() (n int)

func (*GetUserReply) String

func (m *GetUserReply) String() string

func (*GetUserReply) Unmarshal

func (m *GetUserReply) Unmarshal(dAtA []byte) error

func (*GetUserReply) Validate

func (m *GetUserReply) Validate() error

Validate checks the field values on GetUserReply 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 (*GetUserReply) ValidateAll

func (m *GetUserReply) ValidateAll() error

ValidateAll checks the field values on GetUserReply 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 GetUserReplyMultiError, or nil if none found.

func (*GetUserReply) XXX_DiscardUnknown

func (m *GetUserReply) XXX_DiscardUnknown()

func (*GetUserReply) XXX_Marshal

func (m *GetUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserReply) XXX_Merge

func (m *GetUserReply) XXX_Merge(src proto.Message)

func (*GetUserReply) XXX_Size

func (m *GetUserReply) XXX_Size() int

func (*GetUserReply) XXX_Unmarshal

func (m *GetUserReply) XXX_Unmarshal(b []byte) error

type GetUserReplyMultiError

type GetUserReplyMultiError []error

GetUserReplyMultiError is an error wrapping multiple validation errors returned by GetUserReply.ValidateAll() if the designated constraints aren't met.

func (GetUserReplyMultiError) AllErrors

func (m GetUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserReplyMultiError) Error

func (m GetUserReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserReplyValidationError

type GetUserReplyValidationError struct {
	// contains filtered or unexported fields
}

GetUserReplyValidationError is the validation error returned by GetUserReply.Validate if the designated constraints aren't met.

func (GetUserReplyValidationError) Cause

Cause function returns cause value.

func (GetUserReplyValidationError) Error

Error satisfies the builtin error interface

func (GetUserReplyValidationError) ErrorName

func (e GetUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserReplyValidationError) Field

Field function returns field value.

func (GetUserReplyValidationError) Key

Key function returns key value.

func (GetUserReplyValidationError) Reason

Reason function returns reason value.

type GetUserRequest

type GetUserRequest struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserRequest) Descriptor

func (*GetUserRequest) Descriptor() ([]byte, []int)

func (*GetUserRequest) GetId

func (m *GetUserRequest) GetId() int64

func (*GetUserRequest) Marshal

func (m *GetUserRequest) Marshal() (dAtA []byte, err error)

func (*GetUserRequest) MarshalTo

func (m *GetUserRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetUserRequest) MarshalToSizedBuffer

func (m *GetUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) Reset

func (m *GetUserRequest) Reset()

func (*GetUserRequest) Size

func (m *GetUserRequest) Size() (n int)

func (*GetUserRequest) String

func (m *GetUserRequest) String() string

func (*GetUserRequest) Unmarshal

func (m *GetUserRequest) Unmarshal(dAtA []byte) error

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() error

Validate checks the field values on GetUserRequest 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 (*GetUserRequest) ValidateAll

func (m *GetUserRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRequest 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 GetUserRequestMultiError, or nil if none found.

func (*GetUserRequest) XXX_DiscardUnknown

func (m *GetUserRequest) XXX_DiscardUnknown()

func (*GetUserRequest) XXX_Marshal

func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserRequest) XXX_Merge

func (m *GetUserRequest) XXX_Merge(src proto.Message)

func (*GetUserRequest) XXX_Size

func (m *GetUserRequest) XXX_Size() int

func (*GetUserRequest) XXX_Unmarshal

func (m *GetUserRequest) XXX_Unmarshal(b []byte) error

type GetUserRequestMultiError

type GetUserRequestMultiError []error

GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserRequestMultiError) AllErrors

func (m GetUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRequestMultiError) Error

func (m GetUserRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserRequestValidationError

type GetUserRequestValidationError struct {
	// contains filtered or unexported fields
}

GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.

func (GetUserRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

Reason function returns reason value.

type LoginReply

type LoginReply struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	AccessToken          string   `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	RefreshToken         string   `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoginReply) Descriptor

func (*LoginReply) Descriptor() ([]byte, []int)

func (*LoginReply) GetAccessToken

func (m *LoginReply) GetAccessToken() string

func (*LoginReply) GetId

func (m *LoginReply) GetId() int64

func (*LoginReply) GetRefreshToken

func (m *LoginReply) GetRefreshToken() string

func (*LoginReply) Marshal

func (m *LoginReply) Marshal() (dAtA []byte, err error)

func (*LoginReply) MarshalTo

func (m *LoginReply) MarshalTo(dAtA []byte) (int, error)

func (*LoginReply) MarshalToSizedBuffer

func (m *LoginReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoginReply) ProtoMessage

func (*LoginReply) ProtoMessage()

func (*LoginReply) Reset

func (m *LoginReply) Reset()

func (*LoginReply) Size

func (m *LoginReply) Size() (n int)

func (*LoginReply) String

func (m *LoginReply) String() string

func (*LoginReply) Unmarshal

func (m *LoginReply) Unmarshal(dAtA []byte) error

func (*LoginReply) Validate

func (m *LoginReply) Validate() error

Validate checks the field values on LoginReply 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 (*LoginReply) ValidateAll

func (m *LoginReply) ValidateAll() error

ValidateAll checks the field values on LoginReply 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 LoginReplyMultiError, or nil if none found.

func (*LoginReply) XXX_DiscardUnknown

func (m *LoginReply) XXX_DiscardUnknown()

func (*LoginReply) XXX_Marshal

func (m *LoginReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoginReply) XXX_Merge

func (m *LoginReply) XXX_Merge(src proto.Message)

func (*LoginReply) XXX_Size

func (m *LoginReply) XXX_Size() int

func (*LoginReply) XXX_Unmarshal

func (m *LoginReply) XXX_Unmarshal(b []byte) error

type LoginReplyMultiError

type LoginReplyMultiError []error

LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.

func (LoginReplyMultiError) AllErrors

func (m LoginReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginReplyMultiError) Error

func (m LoginReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginReplyValidationError

type LoginReplyValidationError struct {
	// contains filtered or unexported fields
}

LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.

func (LoginReplyValidationError) Cause

func (e LoginReplyValidationError) Cause() error

Cause function returns cause value.

func (LoginReplyValidationError) Error

Error satisfies the builtin error interface

func (LoginReplyValidationError) ErrorName

func (e LoginReplyValidationError) ErrorName() string

ErrorName returns error name.

func (LoginReplyValidationError) Field

Field function returns field value.

func (LoginReplyValidationError) Key

Key function returns key value.

func (LoginReplyValidationError) Reason

func (e LoginReplyValidationError) Reason() string

Reason function returns reason value.

type LoginRequest

type LoginRequest struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Email                string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Password             string   `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoginRequest) Descriptor

func (*LoginRequest) Descriptor() ([]byte, []int)

func (*LoginRequest) GetEmail

func (m *LoginRequest) GetEmail() string

func (*LoginRequest) GetPassword

func (m *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (m *LoginRequest) GetUsername() string

func (*LoginRequest) Marshal

func (m *LoginRequest) Marshal() (dAtA []byte, err error)

func (*LoginRequest) MarshalTo

func (m *LoginRequest) MarshalTo(dAtA []byte) (int, error)

func (*LoginRequest) MarshalToSizedBuffer

func (m *LoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) Reset

func (m *LoginRequest) Reset()

func (*LoginRequest) Size

func (m *LoginRequest) Size() (n int)

func (*LoginRequest) String

func (m *LoginRequest) String() string

func (*LoginRequest) Unmarshal

func (m *LoginRequest) Unmarshal(dAtA []byte) error

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest 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 (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest 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 LoginRequestMultiError, or nil if none found.

func (*LoginRequest) XXX_DiscardUnknown

func (m *LoginRequest) XXX_DiscardUnknown()

func (*LoginRequest) XXX_Marshal

func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoginRequest) XXX_Merge

func (m *LoginRequest) XXX_Merge(src proto.Message)

func (*LoginRequest) XXX_Size

func (m *LoginRequest) XXX_Size() int

func (*LoginRequest) XXX_Unmarshal

func (m *LoginRequest) XXX_Unmarshal(b []byte) error

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

type LoginRequestValidationError struct {
	// contains filtered or unexported fields
}

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LogoutReply

type LogoutReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LogoutReply) Descriptor

func (*LogoutReply) Descriptor() ([]byte, []int)

func (*LogoutReply) Marshal

func (m *LogoutReply) Marshal() (dAtA []byte, err error)

func (*LogoutReply) MarshalTo

func (m *LogoutReply) MarshalTo(dAtA []byte) (int, error)

func (*LogoutReply) MarshalToSizedBuffer

func (m *LogoutReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LogoutReply) ProtoMessage

func (*LogoutReply) ProtoMessage()

func (*LogoutReply) Reset

func (m *LogoutReply) Reset()

func (*LogoutReply) Size

func (m *LogoutReply) Size() (n int)

func (*LogoutReply) String

func (m *LogoutReply) String() string

func (*LogoutReply) Unmarshal

func (m *LogoutReply) Unmarshal(dAtA []byte) error

func (*LogoutReply) XXX_DiscardUnknown

func (m *LogoutReply) XXX_DiscardUnknown()

func (*LogoutReply) XXX_Marshal

func (m *LogoutReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogoutReply) XXX_Merge

func (m *LogoutReply) XXX_Merge(src proto.Message)

func (*LogoutReply) XXX_Size

func (m *LogoutReply) XXX_Size() int

func (*LogoutReply) XXX_Unmarshal

func (m *LogoutReply) XXX_Unmarshal(b []byte) error

type LogoutRequest

type LogoutRequest struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	AccessToken          string   `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LogoutRequest) Descriptor

func (*LogoutRequest) Descriptor() ([]byte, []int)

func (*LogoutRequest) GetAccessToken

func (m *LogoutRequest) GetAccessToken() string

func (*LogoutRequest) GetId

func (m *LogoutRequest) GetId() int64

func (*LogoutRequest) Marshal

func (m *LogoutRequest) Marshal() (dAtA []byte, err error)

func (*LogoutRequest) MarshalTo

func (m *LogoutRequest) MarshalTo(dAtA []byte) (int, error)

func (*LogoutRequest) MarshalToSizedBuffer

func (m *LogoutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LogoutRequest) ProtoMessage

func (*LogoutRequest) ProtoMessage()

func (*LogoutRequest) Reset

func (m *LogoutRequest) Reset()

func (*LogoutRequest) Size

func (m *LogoutRequest) Size() (n int)

func (*LogoutRequest) String

func (m *LogoutRequest) String() string

func (*LogoutRequest) Unmarshal

func (m *LogoutRequest) Unmarshal(dAtA []byte) error

func (*LogoutRequest) Validate

func (m *LogoutRequest) Validate() error

Validate checks the field values on LogoutRequest 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 (*LogoutRequest) ValidateAll

func (m *LogoutRequest) ValidateAll() error

ValidateAll checks the field values on LogoutRequest 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 LogoutRequestMultiError, or nil if none found.

func (*LogoutRequest) XXX_DiscardUnknown

func (m *LogoutRequest) XXX_DiscardUnknown()

func (*LogoutRequest) XXX_Marshal

func (m *LogoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogoutRequest) XXX_Merge

func (m *LogoutRequest) XXX_Merge(src proto.Message)

func (*LogoutRequest) XXX_Size

func (m *LogoutRequest) XXX_Size() int

func (*LogoutRequest) XXX_Unmarshal

func (m *LogoutRequest) XXX_Unmarshal(b []byte) error

type LogoutRequestMultiError

type LogoutRequestMultiError []error

LogoutRequestMultiError is an error wrapping multiple validation errors returned by LogoutRequest.ValidateAll() if the designated constraints aren't met.

func (LogoutRequestMultiError) AllErrors

func (m LogoutRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogoutRequestMultiError) Error

func (m LogoutRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LogoutRequestValidationError

type LogoutRequestValidationError struct {
	// contains filtered or unexported fields
}

LogoutRequestValidationError is the validation error returned by LogoutRequest.Validate if the designated constraints aren't met.

func (LogoutRequestValidationError) Cause

Cause function returns cause value.

func (LogoutRequestValidationError) Error

Error satisfies the builtin error interface

func (LogoutRequestValidationError) ErrorName

func (e LogoutRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRequestValidationError) Field

Field function returns field value.

func (LogoutRequestValidationError) Key

Key function returns key value.

func (LogoutRequestValidationError) Reason

Reason function returns reason value.

type RegisterReply

type RegisterReply struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegisterReply) Descriptor

func (*RegisterReply) Descriptor() ([]byte, []int)

func (*RegisterReply) GetId

func (m *RegisterReply) GetId() int64

func (*RegisterReply) GetUsername

func (m *RegisterReply) GetUsername() string

func (*RegisterReply) Marshal

func (m *RegisterReply) Marshal() (dAtA []byte, err error)

func (*RegisterReply) MarshalTo

func (m *RegisterReply) MarshalTo(dAtA []byte) (int, error)

func (*RegisterReply) MarshalToSizedBuffer

func (m *RegisterReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegisterReply) ProtoMessage

func (*RegisterReply) ProtoMessage()

func (*RegisterReply) Reset

func (m *RegisterReply) Reset()

func (*RegisterReply) Size

func (m *RegisterReply) Size() (n int)

func (*RegisterReply) String

func (m *RegisterReply) String() string

func (*RegisterReply) Unmarshal

func (m *RegisterReply) Unmarshal(dAtA []byte) error

func (*RegisterReply) Validate

func (m *RegisterReply) Validate() error

Validate checks the field values on RegisterReply 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 (*RegisterReply) ValidateAll

func (m *RegisterReply) ValidateAll() error

ValidateAll checks the field values on RegisterReply 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 RegisterReplyMultiError, or nil if none found.

func (*RegisterReply) XXX_DiscardUnknown

func (m *RegisterReply) XXX_DiscardUnknown()

func (*RegisterReply) XXX_Marshal

func (m *RegisterReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterReply) XXX_Merge

func (m *RegisterReply) XXX_Merge(src proto.Message)

func (*RegisterReply) XXX_Size

func (m *RegisterReply) XXX_Size() int

func (*RegisterReply) XXX_Unmarshal

func (m *RegisterReply) XXX_Unmarshal(b []byte) error

type RegisterReplyMultiError

type RegisterReplyMultiError []error

RegisterReplyMultiError is an error wrapping multiple validation errors returned by RegisterReply.ValidateAll() if the designated constraints aren't met.

func (RegisterReplyMultiError) AllErrors

func (m RegisterReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterReplyMultiError) Error

func (m RegisterReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RegisterReplyValidationError

type RegisterReplyValidationError struct {
	// contains filtered or unexported fields
}

RegisterReplyValidationError is the validation error returned by RegisterReply.Validate if the designated constraints aren't met.

func (RegisterReplyValidationError) Cause

Cause function returns cause value.

func (RegisterReplyValidationError) Error

Error satisfies the builtin error interface

func (RegisterReplyValidationError) ErrorName

func (e RegisterReplyValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterReplyValidationError) Field

Field function returns field value.

func (RegisterReplyValidationError) Key

Key function returns key value.

func (RegisterReplyValidationError) Reason

Reason function returns reason value.

type RegisterRequest

type RegisterRequest struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Email                string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Password             string   `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegisterRequest) Descriptor

func (*RegisterRequest) Descriptor() ([]byte, []int)

func (*RegisterRequest) GetEmail

func (m *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetPassword

func (m *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetUsername

func (m *RegisterRequest) GetUsername() string

func (*RegisterRequest) Marshal

func (m *RegisterRequest) Marshal() (dAtA []byte, err error)

func (*RegisterRequest) MarshalTo

func (m *RegisterRequest) MarshalTo(dAtA []byte) (int, error)

func (*RegisterRequest) MarshalToSizedBuffer

func (m *RegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) Reset

func (m *RegisterRequest) Reset()

func (*RegisterRequest) Size

func (m *RegisterRequest) Size() (n int)

func (*RegisterRequest) String

func (m *RegisterRequest) String() string

func (*RegisterRequest) Unmarshal

func (m *RegisterRequest) Unmarshal(dAtA []byte) error

func (*RegisterRequest) Validate

func (m *RegisterRequest) Validate() error

Validate checks the field values on RegisterRequest 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 (*RegisterRequest) ValidateAll

func (m *RegisterRequest) ValidateAll() error

ValidateAll checks the field values on RegisterRequest 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 RegisterRequestMultiError, or nil if none found.

func (*RegisterRequest) XXX_DiscardUnknown

func (m *RegisterRequest) XXX_DiscardUnknown()

func (*RegisterRequest) XXX_Marshal

func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterRequest) XXX_Merge

func (m *RegisterRequest) XXX_Merge(src proto.Message)

func (*RegisterRequest) XXX_Size

func (m *RegisterRequest) XXX_Size() int

func (*RegisterRequest) XXX_Unmarshal

func (m *RegisterRequest) XXX_Unmarshal(b []byte) error

type RegisterRequestMultiError

type RegisterRequestMultiError []error

RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.

func (RegisterRequestMultiError) AllErrors

func (m RegisterRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterRequestValidationError

type RegisterRequestValidationError struct {
	// contains filtered or unexported fields
}

RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.

func (RegisterRequestValidationError) Cause

Cause function returns cause value.

func (RegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequestValidationError) ErrorName

func (e RegisterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRequestValidationError) Field

Field function returns field value.

func (RegisterRequestValidationError) Key

Key function returns key value.

func (RegisterRequestValidationError) Reason

Reason function returns reason value.

type StatusType

type StatusType int32

用户状态

const (
	StatusType_NORMAL StatusType = 0
	StatusType_DELETE StatusType = 1
	StatusType_Ban    StatusType = 2
)

func (StatusType) EnumDescriptor

func (StatusType) EnumDescriptor() ([]byte, []int)

func (StatusType) String

func (x StatusType) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) BatchGetUsers

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) Login

func (UnimplementedUserServiceServer) Logout

func (UnimplementedUserServiceServer) Register

func (UnimplementedUserServiceServer) UpdatePassword

func (UnimplementedUserServiceServer) UpdateUser

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UpdatePasswordReply

type UpdatePasswordReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdatePasswordReply) Descriptor

func (*UpdatePasswordReply) Descriptor() ([]byte, []int)

func (*UpdatePasswordReply) Marshal

func (m *UpdatePasswordReply) Marshal() (dAtA []byte, err error)

func (*UpdatePasswordReply) MarshalTo

func (m *UpdatePasswordReply) MarshalTo(dAtA []byte) (int, error)

func (*UpdatePasswordReply) MarshalToSizedBuffer

func (m *UpdatePasswordReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdatePasswordReply) ProtoMessage

func (*UpdatePasswordReply) ProtoMessage()

func (*UpdatePasswordReply) Reset

func (m *UpdatePasswordReply) Reset()

func (*UpdatePasswordReply) Size

func (m *UpdatePasswordReply) Size() (n int)

func (*UpdatePasswordReply) String

func (m *UpdatePasswordReply) String() string

func (*UpdatePasswordReply) Unmarshal

func (m *UpdatePasswordReply) Unmarshal(dAtA []byte) error

func (*UpdatePasswordReply) Validate

func (m *UpdatePasswordReply) Validate() error

Validate checks the field values on UpdatePasswordReply 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 (*UpdatePasswordReply) ValidateAll

func (m *UpdatePasswordReply) ValidateAll() error

ValidateAll checks the field values on UpdatePasswordReply 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 UpdatePasswordReplyMultiError, or nil if none found.

func (*UpdatePasswordReply) XXX_DiscardUnknown

func (m *UpdatePasswordReply) XXX_DiscardUnknown()

func (*UpdatePasswordReply) XXX_Marshal

func (m *UpdatePasswordReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdatePasswordReply) XXX_Merge

func (m *UpdatePasswordReply) XXX_Merge(src proto.Message)

func (*UpdatePasswordReply) XXX_Size

func (m *UpdatePasswordReply) XXX_Size() int

func (*UpdatePasswordReply) XXX_Unmarshal

func (m *UpdatePasswordReply) XXX_Unmarshal(b []byte) error

type UpdatePasswordReplyMultiError

type UpdatePasswordReplyMultiError []error

UpdatePasswordReplyMultiError is an error wrapping multiple validation errors returned by UpdatePasswordReply.ValidateAll() if the designated constraints aren't met.

func (UpdatePasswordReplyMultiError) AllErrors

func (m UpdatePasswordReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdatePasswordReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdatePasswordReplyValidationError

type UpdatePasswordReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdatePasswordReplyValidationError is the validation error returned by UpdatePasswordReply.Validate if the designated constraints aren't met.

func (UpdatePasswordReplyValidationError) Cause

Cause function returns cause value.

func (UpdatePasswordReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdatePasswordReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdatePasswordReplyValidationError) Field

Field function returns field value.

func (UpdatePasswordReplyValidationError) Key

Key function returns key value.

func (UpdatePasswordReplyValidationError) Reason

Reason function returns reason value.

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	NewPassword          string   `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	ConfirmPassword      string   `protobuf:"bytes,4,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdatePasswordRequest) Descriptor

func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)

func (*UpdatePasswordRequest) GetConfirmPassword

func (m *UpdatePasswordRequest) GetConfirmPassword() string

func (*UpdatePasswordRequest) GetId

func (m *UpdatePasswordRequest) GetId() string

func (*UpdatePasswordRequest) GetNewPassword

func (m *UpdatePasswordRequest) GetNewPassword() string

func (*UpdatePasswordRequest) GetPassword

func (m *UpdatePasswordRequest) GetPassword() string

func (*UpdatePasswordRequest) Marshal

func (m *UpdatePasswordRequest) Marshal() (dAtA []byte, err error)

func (*UpdatePasswordRequest) MarshalTo

func (m *UpdatePasswordRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdatePasswordRequest) MarshalToSizedBuffer

func (m *UpdatePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdatePasswordRequest) ProtoMessage

func (*UpdatePasswordRequest) ProtoMessage()

func (*UpdatePasswordRequest) Reset

func (m *UpdatePasswordRequest) Reset()

func (*UpdatePasswordRequest) Size

func (m *UpdatePasswordRequest) Size() (n int)

func (*UpdatePasswordRequest) String

func (m *UpdatePasswordRequest) String() string

func (*UpdatePasswordRequest) Unmarshal

func (m *UpdatePasswordRequest) Unmarshal(dAtA []byte) error

func (*UpdatePasswordRequest) Validate

func (m *UpdatePasswordRequest) Validate() error

Validate checks the field values on UpdatePasswordRequest 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 (*UpdatePasswordRequest) ValidateAll

func (m *UpdatePasswordRequest) ValidateAll() error

ValidateAll checks the field values on UpdatePasswordRequest 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 UpdatePasswordRequestMultiError, or nil if none found.

func (*UpdatePasswordRequest) XXX_DiscardUnknown

func (m *UpdatePasswordRequest) XXX_DiscardUnknown()

func (*UpdatePasswordRequest) XXX_Marshal

func (m *UpdatePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdatePasswordRequest) XXX_Merge

func (m *UpdatePasswordRequest) XXX_Merge(src proto.Message)

func (*UpdatePasswordRequest) XXX_Size

func (m *UpdatePasswordRequest) XXX_Size() int

func (*UpdatePasswordRequest) XXX_Unmarshal

func (m *UpdatePasswordRequest) XXX_Unmarshal(b []byte) error

type UpdatePasswordRequestMultiError

type UpdatePasswordRequestMultiError []error

UpdatePasswordRequestMultiError is an error wrapping multiple validation errors returned by UpdatePasswordRequest.ValidateAll() if the designated constraints aren't met.

func (UpdatePasswordRequestMultiError) AllErrors

func (m UpdatePasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdatePasswordRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdatePasswordRequestValidationError

type UpdatePasswordRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdatePasswordRequestValidationError is the validation error returned by UpdatePasswordRequest.Validate if the designated constraints aren't met.

func (UpdatePasswordRequestValidationError) Cause

Cause function returns cause value.

func (UpdatePasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdatePasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdatePasswordRequestValidationError) Field

Field function returns field value.

func (UpdatePasswordRequestValidationError) Key

Key function returns key value.

func (UpdatePasswordRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserReply

type UpdateUserReply struct {
	UserId               int64      `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Username             string     `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email                string     `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Phone                string     `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	LoginAt              int64      `protobuf:"varint,5,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"`
	Status               StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=user.v1.StatusType" json:"status,omitempty"`
	Nickname             string     `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Avatar               string     `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Gender               GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=user.v1.GenderType" json:"gender,omitempty"`
	Birthday             string     `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Bio                  string     `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio,omitempty"`
	UpdatedAt            int64      `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*UpdateUserReply) Descriptor

func (*UpdateUserReply) Descriptor() ([]byte, []int)

func (*UpdateUserReply) GetAvatar

func (m *UpdateUserReply) GetAvatar() string

func (*UpdateUserReply) GetBio

func (m *UpdateUserReply) GetBio() string

func (*UpdateUserReply) GetBirthday

func (m *UpdateUserReply) GetBirthday() string

func (*UpdateUserReply) GetEmail

func (m *UpdateUserReply) GetEmail() string

func (*UpdateUserReply) GetGender

func (m *UpdateUserReply) GetGender() GenderType

func (*UpdateUserReply) GetLoginAt

func (m *UpdateUserReply) GetLoginAt() int64

func (*UpdateUserReply) GetNickname

func (m *UpdateUserReply) GetNickname() string

func (*UpdateUserReply) GetPhone

func (m *UpdateUserReply) GetPhone() string

func (*UpdateUserReply) GetStatus

func (m *UpdateUserReply) GetStatus() StatusType

func (*UpdateUserReply) GetUpdatedAt

func (m *UpdateUserReply) GetUpdatedAt() int64

func (*UpdateUserReply) GetUserId

func (m *UpdateUserReply) GetUserId() int64

func (*UpdateUserReply) GetUsername

func (m *UpdateUserReply) GetUsername() string

func (*UpdateUserReply) Marshal

func (m *UpdateUserReply) Marshal() (dAtA []byte, err error)

func (*UpdateUserReply) MarshalTo

func (m *UpdateUserReply) MarshalTo(dAtA []byte) (int, error)

func (*UpdateUserReply) MarshalToSizedBuffer

func (m *UpdateUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdateUserReply) ProtoMessage

func (*UpdateUserReply) ProtoMessage()

func (*UpdateUserReply) Reset

func (m *UpdateUserReply) Reset()

func (*UpdateUserReply) Size

func (m *UpdateUserReply) Size() (n int)

func (*UpdateUserReply) String

func (m *UpdateUserReply) String() string

func (*UpdateUserReply) Unmarshal

func (m *UpdateUserReply) Unmarshal(dAtA []byte) error

func (*UpdateUserReply) Validate

func (m *UpdateUserReply) Validate() error

Validate checks the field values on UpdateUserReply 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 (*UpdateUserReply) ValidateAll

func (m *UpdateUserReply) ValidateAll() error

ValidateAll checks the field values on UpdateUserReply 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 UpdateUserReplyMultiError, or nil if none found.

func (*UpdateUserReply) XXX_DiscardUnknown

func (m *UpdateUserReply) XXX_DiscardUnknown()

func (*UpdateUserReply) XXX_Marshal

func (m *UpdateUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateUserReply) XXX_Merge

func (m *UpdateUserReply) XXX_Merge(src proto.Message)

func (*UpdateUserReply) XXX_Size

func (m *UpdateUserReply) XXX_Size() int

func (*UpdateUserReply) XXX_Unmarshal

func (m *UpdateUserReply) XXX_Unmarshal(b []byte) error

type UpdateUserReplyMultiError

type UpdateUserReplyMultiError []error

UpdateUserReplyMultiError is an error wrapping multiple validation errors returned by UpdateUserReply.ValidateAll() if the designated constraints aren't met.

func (UpdateUserReplyMultiError) AllErrors

func (m UpdateUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserReplyValidationError

type UpdateUserReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserReplyValidationError is the validation error returned by UpdateUserReply.Validate if the designated constraints aren't met.

func (UpdateUserReplyValidationError) Cause

Cause function returns cause value.

func (UpdateUserReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserReplyValidationError) ErrorName

func (e UpdateUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateUserReplyValidationError) Field

Field function returns field value.

func (UpdateUserReplyValidationError) Key

Key function returns key value.

func (UpdateUserReplyValidationError) Reason

Reason function returns reason value.

type UpdateUserRequest

type UpdateUserRequest struct {
	UserId               int64      `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Username             string     `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email                string     `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Phone                string     `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	LoginAt              int64      `protobuf:"varint,5,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"`
	Status               StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=user.v1.StatusType" json:"status,omitempty"`
	Nickname             string     `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Avatar               string     `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Gender               GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=user.v1.GenderType" json:"gender,omitempty"`
	Birthday             string     `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Bio                  string     `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio,omitempty"`
	UpdatedAt            int64      `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*UpdateUserRequest) Descriptor

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

func (*UpdateUserRequest) GetAvatar

func (m *UpdateUserRequest) GetAvatar() string

func (*UpdateUserRequest) GetBio

func (m *UpdateUserRequest) GetBio() string

func (*UpdateUserRequest) GetBirthday

func (m *UpdateUserRequest) GetBirthday() string

func (*UpdateUserRequest) GetEmail

func (m *UpdateUserRequest) GetEmail() string

func (*UpdateUserRequest) GetGender

func (m *UpdateUserRequest) GetGender() GenderType

func (*UpdateUserRequest) GetLoginAt

func (m *UpdateUserRequest) GetLoginAt() int64

func (*UpdateUserRequest) GetNickname

func (m *UpdateUserRequest) GetNickname() string

func (*UpdateUserRequest) GetPhone

func (m *UpdateUserRequest) GetPhone() string

func (*UpdateUserRequest) GetStatus

func (m *UpdateUserRequest) GetStatus() StatusType

func (*UpdateUserRequest) GetUpdatedAt

func (m *UpdateUserRequest) GetUpdatedAt() int64

func (*UpdateUserRequest) GetUserId

func (m *UpdateUserRequest) GetUserId() int64

func (*UpdateUserRequest) GetUsername

func (m *UpdateUserRequest) GetUsername() string

func (*UpdateUserRequest) Marshal

func (m *UpdateUserRequest) Marshal() (dAtA []byte, err error)

func (*UpdateUserRequest) MarshalTo

func (m *UpdateUserRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdateUserRequest) MarshalToSizedBuffer

func (m *UpdateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) Reset

func (m *UpdateUserRequest) Reset()

func (*UpdateUserRequest) Size

func (m *UpdateUserRequest) Size() (n int)

func (*UpdateUserRequest) String

func (m *UpdateUserRequest) String() string

func (*UpdateUserRequest) Unmarshal

func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error

func (*UpdateUserRequest) Validate

func (m *UpdateUserRequest) Validate() error

Validate checks the field values on UpdateUserRequest 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 (*UpdateUserRequest) ValidateAll

func (m *UpdateUserRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserRequest 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 UpdateUserRequestMultiError, or nil if none found.

func (*UpdateUserRequest) XXX_DiscardUnknown

func (m *UpdateUserRequest) XXX_DiscardUnknown()

func (*UpdateUserRequest) XXX_Marshal

func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateUserRequest) XXX_Merge

func (m *UpdateUserRequest) XXX_Merge(src proto.Message)

func (*UpdateUserRequest) XXX_Size

func (m *UpdateUserRequest) XXX_Size() int

func (*UpdateUserRequest) XXX_Unmarshal

func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error

type UpdateUserRequestMultiError

type UpdateUserRequestMultiError []error

UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserRequestMultiError) AllErrors

func (m UpdateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserRequestValidationError

type UpdateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.

func (UpdateUserRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserRequestValidationError) Field

Field function returns field value.

func (UpdateUserRequestValidationError) Key

Key function returns key value.

func (UpdateUserRequestValidationError) Reason

Reason function returns reason value.

type User

type User struct {
	Id                   int64      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username             string     `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email                string     `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Phone                string     `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	LastLoginAt          int64      `protobuf:"varint,5,opt,name=last_login_at,json=lastLoginAt,proto3" json:"last_login_at,omitempty"`
	Status               StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=user.v1.StatusType" json:"status,omitempty"`
	Nickname             string     `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Avatar               string     `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Gender               GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=user.v1.GenderType" json:"gender,omitempty"`
	Birthday             string     `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Bio                  string     `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio,omitempty"`
	CreatedAt            int64      `protobuf:"varint,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            int64      `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

user info

func (*User) Descriptor

func (*User) Descriptor() ([]byte, []int)

func (*User) GetAvatar

func (m *User) GetAvatar() string

func (*User) GetBio

func (m *User) GetBio() string

func (*User) GetBirthday

func (m *User) GetBirthday() string

func (*User) GetCreatedAt

func (m *User) GetCreatedAt() int64

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetGender

func (m *User) GetGender() GenderType

func (*User) GetId

func (m *User) GetId() int64

func (*User) GetLastLoginAt

func (m *User) GetLastLoginAt() int64

func (*User) GetNickname

func (m *User) GetNickname() string

func (*User) GetPhone

func (m *User) GetPhone() string

func (*User) GetStatus

func (m *User) GetStatus() StatusType

func (*User) GetUpdatedAt

func (m *User) GetUpdatedAt() int64

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) Marshal

func (m *User) Marshal() (dAtA []byte, err error)

func (*User) MarshalTo

func (m *User) MarshalTo(dAtA []byte) (int, error)

func (*User) MarshalToSizedBuffer

func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) Size

func (m *User) Size() (n int)

func (*User) String

func (m *User) String() string

func (*User) Unmarshal

func (m *User) Unmarshal(dAtA []byte) error

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User 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 (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User 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 UserMultiError, or nil if none found.

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func (*UserService) BatchGetUsers_0

func (s *UserService) BatchGetUsers_0(ctx *gin.Context)

func (*UserService) CreateUser_0

func (s *UserService) CreateUser_0(ctx *gin.Context)

func (*UserService) GetUser_0

func (s *UserService) GetUser_0(ctx *gin.Context)

func (*UserService) Login_0

func (s *UserService) Login_0(ctx *gin.Context)

func (*UserService) Logout_0

func (s *UserService) Logout_0(ctx *gin.Context)

func (*UserService) RegisterService

func (s *UserService) RegisterService()

func (*UserService) Register_0

func (s *UserService) Register_0(ctx *gin.Context)

func (*UserService) UpdatePassword_0

func (s *UserService) UpdatePassword_0(ctx *gin.Context)

func (*UserService) UpdateUser_0

func (s *UserService) UpdateUser_0(ctx *gin.Context)

type UserServiceClient

type UserServiceClient interface {
	// auth
	// sign up
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterReply, error)
	// sign in
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
	// logout
	Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutReply, error)
	// user
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserReply, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error)
	BatchGetUsers(ctx context.Context, in *BatchGetUsersRequest, opts ...grpc.CallOption) (*BatchGetUsersReply, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error)
	UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordReply, error)
}

UserServiceClient is the client API for UserService 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.

type UserServiceServer

type UserServiceServer interface {
	// auth
	// sign up
	Register(context.Context, *RegisterRequest) (*RegisterReply, error)
	// sign in
	Login(context.Context, *LoginRequest) (*LoginReply, error)
	// logout
	Logout(context.Context, *LogoutRequest) (*LogoutReply, error)
	// user
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
	GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
	BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersReply, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
	UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordReply, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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