v1

package
v1.3.18 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GenderType_name = map[int32]string{
		0: "UNKNOWN",
		1: "MALE",
		2: "FEMALE",
	}
	GenderType_value = map[string]int32{
		"UNKNOWN": 0,
		"MALE":    1,
		"FEMALE":  2,
	}
)

Enum value maps for GenderType.

View Source
var File_api_serverNameExample_v1_userExample_proto protoreflect.FileDescriptor
View Source
var UserExampleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.serverNameExample.v1.userExampleService",
	HandlerType: (*UserExampleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _UserExampleService_Create_Handler,
		},
		{
			MethodName: "DeleteByID",
			Handler:    _UserExampleService_DeleteByID_Handler,
		},
		{
			MethodName: "UpdateByID",
			Handler:    _UserExampleService_UpdateByID_Handler,
		},
		{
			MethodName: "GetByID",
			Handler:    _UserExampleService_GetByID_Handler,
		},
		{
			MethodName: "ListByIDs",
			Handler:    _UserExampleService_ListByIDs_Handler,
		},
		{
			MethodName: "List",
			Handler:    _UserExampleService_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/serverNameExample/v1/userExample.proto",
}

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

Functions

func RegisterUserExampleServiceRouter added in v1.2.0

func RegisterUserExampleServiceRouter(iRouter gin.IRouter, iLogic UserExampleServiceLogicer, opts ...UserExampleServiceOption)

func RegisterUserExampleServiceServer

func RegisterUserExampleServiceServer(s grpc.ServiceRegistrar, srv UserExampleServiceServer)

Types

type CreateUserExampleReply

type CreateUserExampleReply struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserExampleReply) Descriptor deprecated

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

Deprecated: Use CreateUserExampleReply.ProtoReflect.Descriptor instead.

func (*CreateUserExampleReply) GetId

func (x *CreateUserExampleReply) GetId() uint64

func (*CreateUserExampleReply) ProtoMessage

func (*CreateUserExampleReply) ProtoMessage()

func (*CreateUserExampleReply) ProtoReflect

func (x *CreateUserExampleReply) ProtoReflect() protoreflect.Message

func (*CreateUserExampleReply) Reset

func (x *CreateUserExampleReply) Reset()

func (*CreateUserExampleReply) String

func (x *CreateUserExampleReply) String() string

func (*CreateUserExampleReply) Validate

func (m *CreateUserExampleReply) Validate() error

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

func (m *CreateUserExampleReply) ValidateAll() error

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

type CreateUserExampleReplyMultiError

type CreateUserExampleReplyMultiError []error

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

func (CreateUserExampleReplyMultiError) AllErrors

func (m CreateUserExampleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserExampleReplyMultiError) Error

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

type CreateUserExampleReplyValidationError

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

CreateUserExampleReplyValidationError is the validation error returned by CreateUserExampleReply.Validate if the designated constraints aren't met.

func (CreateUserExampleReplyValidationError) Cause

Cause function returns cause value.

func (CreateUserExampleReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateUserExampleReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateUserExampleReplyValidationError) Field

Field function returns field value.

func (CreateUserExampleReplyValidationError) Key

Key function returns key value.

func (CreateUserExampleReplyValidationError) Reason

Reason function returns reason value.

type CreateUserExampleRequest

type CreateUserExampleRequest struct {
	Name     string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                                               // name
	Email    string     `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`                                             // email
	Password string     `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`                                       // password
	Phone    string     `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`                                             // phone number
	Avatar   string     `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`                                           // avatar
	Age      int32      `protobuf:"varint,6,opt,name=age,proto3" json:"age,omitempty"`                                                // age
	Gender   GenderType `protobuf:"varint,7,opt,name=gender,proto3,enum=api.serverNameExample.v1.GenderType" json:"gender,omitempty"` // gender, 1:Male, 2:Female, other values:unknown
	// contains filtered or unexported fields
}

func (*CreateUserExampleRequest) Descriptor deprecated

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

Deprecated: Use CreateUserExampleRequest.ProtoReflect.Descriptor instead.

func (*CreateUserExampleRequest) GetAge

func (x *CreateUserExampleRequest) GetAge() int32

func (*CreateUserExampleRequest) GetAvatar

func (x *CreateUserExampleRequest) GetAvatar() string

func (*CreateUserExampleRequest) GetEmail

func (x *CreateUserExampleRequest) GetEmail() string

func (*CreateUserExampleRequest) GetGender

func (x *CreateUserExampleRequest) GetGender() GenderType

func (*CreateUserExampleRequest) GetName

func (x *CreateUserExampleRequest) GetName() string

func (*CreateUserExampleRequest) GetPassword

func (x *CreateUserExampleRequest) GetPassword() string

func (*CreateUserExampleRequest) GetPhone

func (x *CreateUserExampleRequest) GetPhone() string

func (*CreateUserExampleRequest) ProtoMessage

func (*CreateUserExampleRequest) ProtoMessage()

func (*CreateUserExampleRequest) ProtoReflect

func (x *CreateUserExampleRequest) ProtoReflect() protoreflect.Message

func (*CreateUserExampleRequest) Reset

func (x *CreateUserExampleRequest) Reset()

func (*CreateUserExampleRequest) String

func (x *CreateUserExampleRequest) String() string

func (*CreateUserExampleRequest) Validate

func (m *CreateUserExampleRequest) Validate() error

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

func (m *CreateUserExampleRequest) ValidateAll() error

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

type CreateUserExampleRequestMultiError

type CreateUserExampleRequestMultiError []error

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

func (CreateUserExampleRequestMultiError) AllErrors

func (m CreateUserExampleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserExampleRequestMultiError) Error

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

type CreateUserExampleRequestValidationError

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

CreateUserExampleRequestValidationError is the validation error returned by CreateUserExampleRequest.Validate if the designated constraints aren't met.

func (CreateUserExampleRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserExampleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserExampleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserExampleRequestValidationError) Field

Field function returns field value.

func (CreateUserExampleRequestValidationError) Key

Key function returns key value.

func (CreateUserExampleRequestValidationError) Reason

Reason function returns reason value.

type DeleteUserExampleByIDReply

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

func (*DeleteUserExampleByIDReply) Descriptor deprecated

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

Deprecated: Use DeleteUserExampleByIDReply.ProtoReflect.Descriptor instead.

func (*DeleteUserExampleByIDReply) ProtoMessage

func (*DeleteUserExampleByIDReply) ProtoMessage()

func (*DeleteUserExampleByIDReply) ProtoReflect

func (*DeleteUserExampleByIDReply) Reset

func (x *DeleteUserExampleByIDReply) Reset()

func (*DeleteUserExampleByIDReply) String

func (x *DeleteUserExampleByIDReply) String() string

func (*DeleteUserExampleByIDReply) Validate

func (m *DeleteUserExampleByIDReply) Validate() error

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

func (m *DeleteUserExampleByIDReply) ValidateAll() error

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

type DeleteUserExampleByIDReplyMultiError

type DeleteUserExampleByIDReplyMultiError []error

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

func (DeleteUserExampleByIDReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteUserExampleByIDReplyMultiError) Error

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

type DeleteUserExampleByIDReplyValidationError

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

DeleteUserExampleByIDReplyValidationError is the validation error returned by DeleteUserExampleByIDReply.Validate if the designated constraints aren't met.

func (DeleteUserExampleByIDReplyValidationError) Cause

Cause function returns cause value.

func (DeleteUserExampleByIDReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserExampleByIDReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserExampleByIDReplyValidationError) Field

Field function returns field value.

func (DeleteUserExampleByIDReplyValidationError) Key

Key function returns key value.

func (DeleteUserExampleByIDReplyValidationError) Reason

Reason function returns reason value.

type DeleteUserExampleByIDRequest

type DeleteUserExampleByIDRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" uri:"id"`
	// contains filtered or unexported fields
}

func (*DeleteUserExampleByIDRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserExampleByIDRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserExampleByIDRequest) GetId

func (*DeleteUserExampleByIDRequest) ProtoMessage

func (*DeleteUserExampleByIDRequest) ProtoMessage()

func (*DeleteUserExampleByIDRequest) ProtoReflect

func (*DeleteUserExampleByIDRequest) Reset

func (x *DeleteUserExampleByIDRequest) Reset()

func (*DeleteUserExampleByIDRequest) String

func (*DeleteUserExampleByIDRequest) Validate

func (m *DeleteUserExampleByIDRequest) Validate() error

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

func (m *DeleteUserExampleByIDRequest) ValidateAll() error

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

type DeleteUserExampleByIDRequestMultiError

type DeleteUserExampleByIDRequestMultiError []error

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

func (DeleteUserExampleByIDRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteUserExampleByIDRequestMultiError) Error

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

type DeleteUserExampleByIDRequestValidationError

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

DeleteUserExampleByIDRequestValidationError is the validation error returned by DeleteUserExampleByIDRequest.Validate if the designated constraints aren't met.

func (DeleteUserExampleByIDRequestValidationError) Cause

Cause function returns cause value.

func (DeleteUserExampleByIDRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserExampleByIDRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserExampleByIDRequestValidationError) Field

Field function returns field value.

func (DeleteUserExampleByIDRequestValidationError) Key

Key function returns key value.

func (DeleteUserExampleByIDRequestValidationError) 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) Descriptor

func (GenderType) Descriptor() protoreflect.EnumDescriptor

func (GenderType) Enum

func (x GenderType) Enum() *GenderType

func (GenderType) EnumDescriptor deprecated

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

Deprecated: Use GenderType.Descriptor instead.

func (GenderType) Number

func (x GenderType) Number() protoreflect.EnumNumber

func (GenderType) String

func (x GenderType) String() string

func (GenderType) Type

type GetUserExampleByIDReply

type GetUserExampleByIDReply struct {
	UserExample *UserExample `protobuf:"bytes,1,opt,name=userExample,proto3" json:"userExample,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserExampleByIDReply) Descriptor deprecated

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

Deprecated: Use GetUserExampleByIDReply.ProtoReflect.Descriptor instead.

func (*GetUserExampleByIDReply) GetUserExample

func (x *GetUserExampleByIDReply) GetUserExample() *UserExample

func (*GetUserExampleByIDReply) ProtoMessage

func (*GetUserExampleByIDReply) ProtoMessage()

func (*GetUserExampleByIDReply) ProtoReflect

func (x *GetUserExampleByIDReply) ProtoReflect() protoreflect.Message

func (*GetUserExampleByIDReply) Reset

func (x *GetUserExampleByIDReply) Reset()

func (*GetUserExampleByIDReply) String

func (x *GetUserExampleByIDReply) String() string

func (*GetUserExampleByIDReply) Validate

func (m *GetUserExampleByIDReply) Validate() error

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

func (m *GetUserExampleByIDReply) ValidateAll() error

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

type GetUserExampleByIDReplyMultiError

type GetUserExampleByIDReplyMultiError []error

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

func (GetUserExampleByIDReplyMultiError) AllErrors

func (m GetUserExampleByIDReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserExampleByIDReplyMultiError) Error

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

type GetUserExampleByIDReplyValidationError

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

GetUserExampleByIDReplyValidationError is the validation error returned by GetUserExampleByIDReply.Validate if the designated constraints aren't met.

func (GetUserExampleByIDReplyValidationError) Cause

Cause function returns cause value.

func (GetUserExampleByIDReplyValidationError) Error

Error satisfies the builtin error interface

func (GetUserExampleByIDReplyValidationError) ErrorName

ErrorName returns error name.

func (GetUserExampleByIDReplyValidationError) Field

Field function returns field value.

func (GetUserExampleByIDReplyValidationError) Key

Key function returns key value.

func (GetUserExampleByIDReplyValidationError) Reason

Reason function returns reason value.

type GetUserExampleByIDRequest

type GetUserExampleByIDRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" uri:"id"`
	// contains filtered or unexported fields
}

func (*GetUserExampleByIDRequest) Descriptor deprecated

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

Deprecated: Use GetUserExampleByIDRequest.ProtoReflect.Descriptor instead.

func (*GetUserExampleByIDRequest) GetId

func (x *GetUserExampleByIDRequest) GetId() uint64

func (*GetUserExampleByIDRequest) ProtoMessage

func (*GetUserExampleByIDRequest) ProtoMessage()

func (*GetUserExampleByIDRequest) ProtoReflect

func (*GetUserExampleByIDRequest) Reset

func (x *GetUserExampleByIDRequest) Reset()

func (*GetUserExampleByIDRequest) String

func (x *GetUserExampleByIDRequest) String() string

func (*GetUserExampleByIDRequest) Validate

func (m *GetUserExampleByIDRequest) Validate() error

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

func (m *GetUserExampleByIDRequest) ValidateAll() error

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

type GetUserExampleByIDRequestMultiError

type GetUserExampleByIDRequestMultiError []error

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

func (GetUserExampleByIDRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetUserExampleByIDRequestMultiError) Error

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

type GetUserExampleByIDRequestValidationError

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

GetUserExampleByIDRequestValidationError is the validation error returned by GetUserExampleByIDRequest.Validate if the designated constraints aren't met.

func (GetUserExampleByIDRequestValidationError) Cause

Cause function returns cause value.

func (GetUserExampleByIDRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserExampleByIDRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserExampleByIDRequestValidationError) Field

Field function returns field value.

func (GetUserExampleByIDRequestValidationError) Key

Key function returns key value.

func (GetUserExampleByIDRequestValidationError) Reason

Reason function returns reason value.

type ListUserExampleByIDsReply

type ListUserExampleByIDsReply struct {
	UserExamples []*UserExample `protobuf:"bytes,1,rep,name=userExamples,proto3" json:"userExamples,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserExampleByIDsReply) Descriptor deprecated

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

Deprecated: Use ListUserExampleByIDsReply.ProtoReflect.Descriptor instead.

func (*ListUserExampleByIDsReply) GetUserExamples

func (x *ListUserExampleByIDsReply) GetUserExamples() []*UserExample

func (*ListUserExampleByIDsReply) ProtoMessage

func (*ListUserExampleByIDsReply) ProtoMessage()

func (*ListUserExampleByIDsReply) ProtoReflect

func (*ListUserExampleByIDsReply) Reset

func (x *ListUserExampleByIDsReply) Reset()

func (*ListUserExampleByIDsReply) String

func (x *ListUserExampleByIDsReply) String() string

func (*ListUserExampleByIDsReply) Validate

func (m *ListUserExampleByIDsReply) Validate() error

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

func (m *ListUserExampleByIDsReply) ValidateAll() error

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

type ListUserExampleByIDsReplyMultiError

type ListUserExampleByIDsReplyMultiError []error

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

func (ListUserExampleByIDsReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListUserExampleByIDsReplyMultiError) Error

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

type ListUserExampleByIDsReplyValidationError

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

ListUserExampleByIDsReplyValidationError is the validation error returned by ListUserExampleByIDsReply.Validate if the designated constraints aren't met.

func (ListUserExampleByIDsReplyValidationError) Cause

Cause function returns cause value.

func (ListUserExampleByIDsReplyValidationError) Error

Error satisfies the builtin error interface

func (ListUserExampleByIDsReplyValidationError) ErrorName

ErrorName returns error name.

func (ListUserExampleByIDsReplyValidationError) Field

Field function returns field value.

func (ListUserExampleByIDsReplyValidationError) Key

Key function returns key value.

func (ListUserExampleByIDsReplyValidationError) Reason

Reason function returns reason value.

type ListUserExampleByIDsRequest

type ListUserExampleByIDsRequest struct {
	Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserExampleByIDsRequest) Descriptor deprecated

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

Deprecated: Use ListUserExampleByIDsRequest.ProtoReflect.Descriptor instead.

func (*ListUserExampleByIDsRequest) GetIds

func (x *ListUserExampleByIDsRequest) GetIds() []uint64

func (*ListUserExampleByIDsRequest) ProtoMessage

func (*ListUserExampleByIDsRequest) ProtoMessage()

func (*ListUserExampleByIDsRequest) ProtoReflect

func (*ListUserExampleByIDsRequest) Reset

func (x *ListUserExampleByIDsRequest) Reset()

func (*ListUserExampleByIDsRequest) String

func (x *ListUserExampleByIDsRequest) String() string

func (*ListUserExampleByIDsRequest) Validate

func (m *ListUserExampleByIDsRequest) Validate() error

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

func (m *ListUserExampleByIDsRequest) ValidateAll() error

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

type ListUserExampleByIDsRequestMultiError

type ListUserExampleByIDsRequestMultiError []error

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

func (ListUserExampleByIDsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListUserExampleByIDsRequestMultiError) Error

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

type ListUserExampleByIDsRequestValidationError

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

ListUserExampleByIDsRequestValidationError is the validation error returned by ListUserExampleByIDsRequest.Validate if the designated constraints aren't met.

func (ListUserExampleByIDsRequestValidationError) Cause

Cause function returns cause value.

func (ListUserExampleByIDsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserExampleByIDsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUserExampleByIDsRequestValidationError) Field

Field function returns field value.

func (ListUserExampleByIDsRequestValidationError) Key

Key function returns key value.

func (ListUserExampleByIDsRequestValidationError) Reason

Reason function returns reason value.

type ListUserExampleReply

type ListUserExampleReply struct {
	Total        int64          `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	UserExamples []*UserExample `protobuf:"bytes,2,rep,name=userExamples,proto3" json:"userExamples,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserExampleReply) Descriptor deprecated

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

Deprecated: Use ListUserExampleReply.ProtoReflect.Descriptor instead.

func (*ListUserExampleReply) GetTotal

func (x *ListUserExampleReply) GetTotal() int64

func (*ListUserExampleReply) GetUserExamples

func (x *ListUserExampleReply) GetUserExamples() []*UserExample

func (*ListUserExampleReply) ProtoMessage

func (*ListUserExampleReply) ProtoMessage()

func (*ListUserExampleReply) ProtoReflect

func (x *ListUserExampleReply) ProtoReflect() protoreflect.Message

func (*ListUserExampleReply) Reset

func (x *ListUserExampleReply) Reset()

func (*ListUserExampleReply) String

func (x *ListUserExampleReply) String() string

func (*ListUserExampleReply) Validate

func (m *ListUserExampleReply) Validate() error

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

func (m *ListUserExampleReply) ValidateAll() error

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

type ListUserExampleReplyMultiError

type ListUserExampleReplyMultiError []error

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

func (ListUserExampleReplyMultiError) AllErrors

func (m ListUserExampleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserExampleReplyMultiError) Error

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

type ListUserExampleReplyValidationError

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

ListUserExampleReplyValidationError is the validation error returned by ListUserExampleReply.Validate if the designated constraints aren't met.

func (ListUserExampleReplyValidationError) Cause

Cause function returns cause value.

func (ListUserExampleReplyValidationError) Error

Error satisfies the builtin error interface

func (ListUserExampleReplyValidationError) ErrorName

ErrorName returns error name.

func (ListUserExampleReplyValidationError) Field

Field function returns field value.

func (ListUserExampleReplyValidationError) Key

Key function returns key value.

func (ListUserExampleReplyValidationError) Reason

Reason function returns reason value.

type ListUserExampleRequest

type ListUserExampleRequest struct {
	Params *types.Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserExampleRequest) Descriptor deprecated

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

Deprecated: Use ListUserExampleRequest.ProtoReflect.Descriptor instead.

func (*ListUserExampleRequest) GetParams

func (x *ListUserExampleRequest) GetParams() *types.Params

func (*ListUserExampleRequest) ProtoMessage

func (*ListUserExampleRequest) ProtoMessage()

func (*ListUserExampleRequest) ProtoReflect

func (x *ListUserExampleRequest) ProtoReflect() protoreflect.Message

func (*ListUserExampleRequest) Reset

func (x *ListUserExampleRequest) Reset()

func (*ListUserExampleRequest) String

func (x *ListUserExampleRequest) String() string

func (*ListUserExampleRequest) Validate

func (m *ListUserExampleRequest) Validate() error

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

func (m *ListUserExampleRequest) ValidateAll() error

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

type ListUserExampleRequestMultiError

type ListUserExampleRequestMultiError []error

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

func (ListUserExampleRequestMultiError) AllErrors

func (m ListUserExampleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserExampleRequestMultiError) Error

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

type ListUserExampleRequestValidationError

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

ListUserExampleRequestValidationError is the validation error returned by ListUserExampleRequest.Validate if the designated constraints aren't met.

func (ListUserExampleRequestValidationError) Cause

Cause function returns cause value.

func (ListUserExampleRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserExampleRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUserExampleRequestValidationError) Field

Field function returns field value.

func (ListUserExampleRequestValidationError) Key

Key function returns key value.

func (ListUserExampleRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedUserExampleServiceServer

type UnimplementedUserExampleServiceServer struct {
}

UnimplementedUserExampleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserExampleServiceServer) Create

func (UnimplementedUserExampleServiceServer) GetByID

func (UnimplementedUserExampleServiceServer) List

type UnsafeUserExampleServiceServer

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

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

type UpdateUserExampleByIDReply

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

func (*UpdateUserExampleByIDReply) Descriptor deprecated

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

Deprecated: Use UpdateUserExampleByIDReply.ProtoReflect.Descriptor instead.

func (*UpdateUserExampleByIDReply) ProtoMessage

func (*UpdateUserExampleByIDReply) ProtoMessage()

func (*UpdateUserExampleByIDReply) ProtoReflect

func (*UpdateUserExampleByIDReply) Reset

func (x *UpdateUserExampleByIDReply) Reset()

func (*UpdateUserExampleByIDReply) String

func (x *UpdateUserExampleByIDReply) String() string

func (*UpdateUserExampleByIDReply) Validate

func (m *UpdateUserExampleByIDReply) Validate() error

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

func (m *UpdateUserExampleByIDReply) ValidateAll() error

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

type UpdateUserExampleByIDReplyMultiError

type UpdateUserExampleByIDReplyMultiError []error

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

func (UpdateUserExampleByIDReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateUserExampleByIDReplyMultiError) Error

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

type UpdateUserExampleByIDReplyValidationError

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

UpdateUserExampleByIDReplyValidationError is the validation error returned by UpdateUserExampleByIDReply.Validate if the designated constraints aren't met.

func (UpdateUserExampleByIDReplyValidationError) Cause

Cause function returns cause value.

func (UpdateUserExampleByIDReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserExampleByIDReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserExampleByIDReplyValidationError) Field

Field function returns field value.

func (UpdateUserExampleByIDReplyValidationError) Key

Key function returns key value.

func (UpdateUserExampleByIDReplyValidationError) Reason

Reason function returns reason value.

type UpdateUserExampleByIDRequest

type UpdateUserExampleByIDRequest struct {
	Id       uint64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" uri:"id"`
	Name     string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                               // name
	Email    string     `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`                                             // email
	Password string     `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`                                       // password
	Phone    string     `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`                                             // phone number
	Avatar   string     `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`                                           // avatar
	Age      int32      `protobuf:"varint,7,opt,name=age,proto3" json:"age,omitempty"`                                                // age
	Gender   GenderType `protobuf:"varint,8,opt,name=gender,proto3,enum=api.serverNameExample.v1.GenderType" json:"gender,omitempty"` // gender, 1:Male, 2:Female, other values:unknown
	Status   int32      `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"`                                          // account status
	LoginAt  int64      `protobuf:"varint,10,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"`                        // login timestamp
	// contains filtered or unexported fields
}

func (*UpdateUserExampleByIDRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserExampleByIDRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserExampleByIDRequest) GetAge

func (x *UpdateUserExampleByIDRequest) GetAge() int32

func (*UpdateUserExampleByIDRequest) GetAvatar

func (x *UpdateUserExampleByIDRequest) GetAvatar() string

func (*UpdateUserExampleByIDRequest) GetEmail

func (x *UpdateUserExampleByIDRequest) GetEmail() string

func (*UpdateUserExampleByIDRequest) GetGender

func (*UpdateUserExampleByIDRequest) GetId

func (*UpdateUserExampleByIDRequest) GetLoginAt

func (x *UpdateUserExampleByIDRequest) GetLoginAt() int64

func (*UpdateUserExampleByIDRequest) GetName

func (x *UpdateUserExampleByIDRequest) GetName() string

func (*UpdateUserExampleByIDRequest) GetPassword

func (x *UpdateUserExampleByIDRequest) GetPassword() string

func (*UpdateUserExampleByIDRequest) GetPhone

func (x *UpdateUserExampleByIDRequest) GetPhone() string

func (*UpdateUserExampleByIDRequest) GetStatus

func (x *UpdateUserExampleByIDRequest) GetStatus() int32

func (*UpdateUserExampleByIDRequest) ProtoMessage

func (*UpdateUserExampleByIDRequest) ProtoMessage()

func (*UpdateUserExampleByIDRequest) ProtoReflect

func (*UpdateUserExampleByIDRequest) Reset

func (x *UpdateUserExampleByIDRequest) Reset()

func (*UpdateUserExampleByIDRequest) String

func (*UpdateUserExampleByIDRequest) Validate

func (m *UpdateUserExampleByIDRequest) Validate() error

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

func (m *UpdateUserExampleByIDRequest) ValidateAll() error

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

type UpdateUserExampleByIDRequestMultiError

type UpdateUserExampleByIDRequestMultiError []error

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

func (UpdateUserExampleByIDRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateUserExampleByIDRequestMultiError) Error

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

type UpdateUserExampleByIDRequestValidationError

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

UpdateUserExampleByIDRequestValidationError is the validation error returned by UpdateUserExampleByIDRequest.Validate if the designated constraints aren't met.

func (UpdateUserExampleByIDRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserExampleByIDRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserExampleByIDRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserExampleByIDRequestValidationError) Field

Field function returns field value.

func (UpdateUserExampleByIDRequestValidationError) Key

Key function returns key value.

func (UpdateUserExampleByIDRequestValidationError) Reason

Reason function returns reason value.

type UserExample

type UserExample struct {
	Id        uint64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                               // name
	Email     string     `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`                                             // email
	Phone     string     `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`                                             // phone number
	Avatar    string     `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`                                           // avatar
	Age       int32      `protobuf:"varint,6,opt,name=age,proto3" json:"age,omitempty"`                                                // age
	Gender    GenderType `protobuf:"varint,7,opt,name=gender,proto3,enum=api.serverNameExample.v1.GenderType" json:"gender,omitempty"` // gender, 1:Male, 2:Female, other values:unknown
	Status    int32      `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`                                          // account status
	LoginAt   int64      `protobuf:"varint,9,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"`                         // login timestamp
	CreatedAt int64      `protobuf:"varint,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`                  // creation time
	UpdatedAt int64      `protobuf:"varint,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`                  // update time
	// contains filtered or unexported fields
}

func (*UserExample) Descriptor deprecated

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

Deprecated: Use UserExample.ProtoReflect.Descriptor instead.

func (*UserExample) GetAge

func (x *UserExample) GetAge() int32

func (*UserExample) GetAvatar

func (x *UserExample) GetAvatar() string

func (*UserExample) GetCreatedAt

func (x *UserExample) GetCreatedAt() int64

func (*UserExample) GetEmail

func (x *UserExample) GetEmail() string

func (*UserExample) GetGender

func (x *UserExample) GetGender() GenderType

func (*UserExample) GetId

func (x *UserExample) GetId() uint64

func (*UserExample) GetLoginAt

func (x *UserExample) GetLoginAt() int64

func (*UserExample) GetName

func (x *UserExample) GetName() string

func (*UserExample) GetPhone

func (x *UserExample) GetPhone() string

func (*UserExample) GetStatus

func (x *UserExample) GetStatus() int32

func (*UserExample) GetUpdatedAt

func (x *UserExample) GetUpdatedAt() int64

func (*UserExample) ProtoMessage

func (*UserExample) ProtoMessage()

func (*UserExample) ProtoReflect

func (x *UserExample) ProtoReflect() protoreflect.Message

func (*UserExample) Reset

func (x *UserExample) Reset()

func (*UserExample) String

func (x *UserExample) String() string

func (*UserExample) Validate

func (m *UserExample) Validate() error

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

func (m *UserExample) ValidateAll() error

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

type UserExampleMultiError

type UserExampleMultiError []error

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

func (UserExampleMultiError) AllErrors

func (m UserExampleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserExampleMultiError) Error

func (m UserExampleMultiError) Error() string

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

type UserExampleServiceClient

UserExampleServiceClient is the client API for UserExampleService 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 UserExampleServiceOption added in v1.2.0

type UserExampleServiceOption func(*userExampleServiceOptions)

func WithUserExampleServiceHTTPResponse added in v1.2.0

func WithUserExampleServiceHTTPResponse() UserExampleServiceOption

func WithUserExampleServiceLogger added in v1.2.0

func WithUserExampleServiceLogger(zapLog *zap.Logger) UserExampleServiceOption

func WithUserExampleServiceRPCResponse added in v1.2.0

func WithUserExampleServiceRPCResponse() UserExampleServiceOption

func WithUserExampleServiceResponser added in v1.2.0

func WithUserExampleServiceResponser(responser errcode.Responser) UserExampleServiceOption

type UserExampleServiceServer

UserExampleServiceServer is the server API for UserExampleService service. All implementations must embed UnimplementedUserExampleServiceServer for forward compatibility

type UserExampleValidationError

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

UserExampleValidationError is the validation error returned by UserExample.Validate if the designated constraints aren't met.

func (UserExampleValidationError) Cause

Cause function returns cause value.

func (UserExampleValidationError) Error

Error satisfies the builtin error interface

func (UserExampleValidationError) ErrorName

func (e UserExampleValidationError) ErrorName() string

ErrorName returns error name.

func (UserExampleValidationError) Field

Field function returns field value.

func (UserExampleValidationError) Key

Key function returns key value.

func (UserExampleValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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