Versions in this module Expand all Collapse all v0 v0.1.0 Jun 25, 2023 Changes in this version + const ExampleService_CreateExample_FullMethodName + const ExampleService_DeleteExample_FullMethodName + const ExampleService_GetExampleList_FullMethodName + const ExampleService_GetExample_FullMethodName + const ExampleService_RecoverExample_FullMethodName + const ExampleService_UpdateExample_FullMethodName + const OperationExampleServiceCreateExample + const OperationExampleServiceDeleteExample + const OperationExampleServiceGetExample + const OperationExampleServiceGetExampleList + const OperationExampleServiceRecoverExample + const OperationExampleServiceUpdateExample + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var ExampleService_ServiceDesc = grpc.ServiceDesc + var File_example_v1_error_reason_proto protoreflect.FileDescriptor + var File_example_v1_example_proto protoreflect.FileDescriptor + func ErrorBadRequest(format string, args ...interface{}) *errors.Error + func ErrorRecordAlreadyExists(format string, args ...interface{}) *errors.Error + func ErrorRecordNotFound(format string, args ...interface{}) *errors.Error + func ErrorSystemError(format string, args ...interface{}) *errors.Error + func IsBadRequest(err error) bool + func IsRecordAlreadyExists(err error) bool + func IsRecordNotFound(err error) bool + func IsSystemError(err error) bool + func RegisterExampleServiceHTTPServer(s *http.Server, srv ExampleServiceHTTPServer) + func RegisterExampleServiceServer(s grpc.ServiceRegistrar, srv ExampleServiceServer) + type CheckResponse struct + Success bool + func (*CheckResponse) Descriptor() ([]byte, []int) + func (*CheckResponse) ProtoMessage() + func (m *CheckResponse) Validate() error + func (m *CheckResponse) ValidateAll() error + func (x *CheckResponse) GetSuccess() bool + func (x *CheckResponse) ProtoReflect() protoreflect.Message + func (x *CheckResponse) Reset() + func (x *CheckResponse) String() string + type CheckResponseMultiError []error + func (m CheckResponseMultiError) AllErrors() []error + func (m CheckResponseMultiError) Error() string + type CheckResponseValidationError struct + func (e CheckResponseValidationError) Cause() error + func (e CheckResponseValidationError) Error() string + func (e CheckResponseValidationError) ErrorName() string + func (e CheckResponseValidationError) Field() string + func (e CheckResponseValidationError) Key() bool + func (e CheckResponseValidationError) Reason() string + type CreateExampleReq struct + Name string + Status bool + func (*CreateExampleReq) Descriptor() ([]byte, []int) + func (*CreateExampleReq) ProtoMessage() + func (m *CreateExampleReq) Validate() error + func (m *CreateExampleReq) ValidateAll() error + func (x *CreateExampleReq) GetName() string + func (x *CreateExampleReq) GetStatus() bool + func (x *CreateExampleReq) ProtoReflect() protoreflect.Message + func (x *CreateExampleReq) Reset() + func (x *CreateExampleReq) String() string + type CreateExampleReqMultiError []error + func (m CreateExampleReqMultiError) AllErrors() []error + func (m CreateExampleReqMultiError) Error() string + type CreateExampleReqValidationError struct + func (e CreateExampleReqValidationError) Cause() error + func (e CreateExampleReqValidationError) Error() string + func (e CreateExampleReqValidationError) ErrorName() string + func (e CreateExampleReqValidationError) Field() string + func (e CreateExampleReqValidationError) Key() bool + func (e CreateExampleReqValidationError) Reason() string + type ErrorReason int32 + const ErrorReason_BAD_REQUEST + const ErrorReason_RECORD_ALREADY_EXISTS + const ErrorReason_RECORD_NOT_FOUND + const ErrorReason_SYSTEM_ERROR + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type Example struct + CreateAt string + Id int64 + Name string + Status bool + UpdateAt string + func (*Example) Descriptor() ([]byte, []int) + func (*Example) ProtoMessage() + func (m *Example) Validate() error + func (m *Example) ValidateAll() error + func (x *Example) GetCreateAt() string + func (x *Example) GetId() int64 + func (x *Example) GetName() string + func (x *Example) GetStatus() bool + func (x *Example) GetUpdateAt() string + func (x *Example) ProtoReflect() protoreflect.Message + func (x *Example) Reset() + func (x *Example) String() string + type ExampleIdReq struct + Id int64 + func (*ExampleIdReq) Descriptor() ([]byte, []int) + func (*ExampleIdReq) ProtoMessage() + func (m *ExampleIdReq) Validate() error + func (m *ExampleIdReq) ValidateAll() error + func (x *ExampleIdReq) GetId() int64 + func (x *ExampleIdReq) ProtoReflect() protoreflect.Message + func (x *ExampleIdReq) Reset() + func (x *ExampleIdReq) String() string + type ExampleIdReqMultiError []error + func (m ExampleIdReqMultiError) AllErrors() []error + func (m ExampleIdReqMultiError) Error() string + type ExampleIdReqValidationError struct + func (e ExampleIdReqValidationError) Cause() error + func (e ExampleIdReqValidationError) Error() string + func (e ExampleIdReqValidationError) ErrorName() string + func (e ExampleIdReqValidationError) Field() string + func (e ExampleIdReqValidationError) Key() bool + func (e ExampleIdReqValidationError) Reason() string + type ExampleMultiError []error + func (m ExampleMultiError) AllErrors() []error + func (m ExampleMultiError) Error() string + type ExampleServiceClient interface + CreateExample func(ctx context.Context, in *CreateExampleReq, opts ...grpc.CallOption) (*Example, error) + DeleteExample func(ctx context.Context, in *ExampleIdReq, opts ...grpc.CallOption) (*CheckResponse, error) + GetExample func(ctx context.Context, in *ExampleIdReq, opts ...grpc.CallOption) (*Example, error) + GetExampleList func(ctx context.Context, in *GetExampleListReq, opts ...grpc.CallOption) (*GetExampleListPageRes, error) + RecoverExample func(ctx context.Context, in *ExampleIdReq, opts ...grpc.CallOption) (*CheckResponse, error) + UpdateExample func(ctx context.Context, in *UpdateExampleReq, opts ...grpc.CallOption) (*CheckResponse, error) + func NewExampleServiceClient(cc grpc.ClientConnInterface) ExampleServiceClient + type ExampleServiceHTTPClient interface + CreateExample func(ctx context.Context, req *CreateExampleReq, opts ...http.CallOption) (rsp *Example, err error) + DeleteExample func(ctx context.Context, req *ExampleIdReq, opts ...http.CallOption) (rsp *CheckResponse, err error) + GetExample func(ctx context.Context, req *ExampleIdReq, opts ...http.CallOption) (rsp *Example, err error) + GetExampleList func(ctx context.Context, req *GetExampleListReq, opts ...http.CallOption) (rsp *GetExampleListPageRes, err error) + RecoverExample func(ctx context.Context, req *ExampleIdReq, opts ...http.CallOption) (rsp *CheckResponse, err error) + UpdateExample func(ctx context.Context, req *UpdateExampleReq, opts ...http.CallOption) (rsp *CheckResponse, err error) + func NewExampleServiceHTTPClient(client *http.Client) ExampleServiceHTTPClient + type ExampleServiceHTTPClientImpl struct + func (c *ExampleServiceHTTPClientImpl) CreateExample(ctx context.Context, in *CreateExampleReq, opts ...http.CallOption) (*Example, error) + func (c *ExampleServiceHTTPClientImpl) DeleteExample(ctx context.Context, in *ExampleIdReq, opts ...http.CallOption) (*CheckResponse, error) + func (c *ExampleServiceHTTPClientImpl) GetExample(ctx context.Context, in *ExampleIdReq, opts ...http.CallOption) (*Example, error) + func (c *ExampleServiceHTTPClientImpl) GetExampleList(ctx context.Context, in *GetExampleListReq, opts ...http.CallOption) (*GetExampleListPageRes, error) + func (c *ExampleServiceHTTPClientImpl) RecoverExample(ctx context.Context, in *ExampleIdReq, opts ...http.CallOption) (*CheckResponse, error) + func (c *ExampleServiceHTTPClientImpl) UpdateExample(ctx context.Context, in *UpdateExampleReq, opts ...http.CallOption) (*CheckResponse, error) + type ExampleServiceHTTPServer interface + CreateExample func(context.Context, *CreateExampleReq) (*Example, error) + DeleteExample func(context.Context, *ExampleIdReq) (*CheckResponse, error) + GetExample func(context.Context, *ExampleIdReq) (*Example, error) + GetExampleList func(context.Context, *GetExampleListReq) (*GetExampleListPageRes, error) + RecoverExample func(context.Context, *ExampleIdReq) (*CheckResponse, error) + UpdateExample func(context.Context, *UpdateExampleReq) (*CheckResponse, error) + type ExampleServiceServer interface + CreateExample func(context.Context, *CreateExampleReq) (*Example, error) + DeleteExample func(context.Context, *ExampleIdReq) (*CheckResponse, error) + GetExample func(context.Context, *ExampleIdReq) (*Example, error) + GetExampleList func(context.Context, *GetExampleListReq) (*GetExampleListPageRes, error) + RecoverExample func(context.Context, *ExampleIdReq) (*CheckResponse, error) + UpdateExample func(context.Context, *UpdateExampleReq) (*CheckResponse, error) + type ExampleValidationError struct + func (e ExampleValidationError) Cause() error + func (e ExampleValidationError) Error() string + func (e ExampleValidationError) ErrorName() string + func (e ExampleValidationError) Field() string + func (e ExampleValidationError) Key() bool + func (e ExampleValidationError) Reason() string + type GetExampleListPageRes struct + List []*Example + Total int64 + func (*GetExampleListPageRes) Descriptor() ([]byte, []int) + func (*GetExampleListPageRes) ProtoMessage() + func (m *GetExampleListPageRes) Validate() error + func (m *GetExampleListPageRes) ValidateAll() error + func (x *GetExampleListPageRes) GetList() []*Example + func (x *GetExampleListPageRes) GetTotal() int64 + func (x *GetExampleListPageRes) ProtoReflect() protoreflect.Message + func (x *GetExampleListPageRes) Reset() + func (x *GetExampleListPageRes) String() string + type GetExampleListPageResMultiError []error + func (m GetExampleListPageResMultiError) AllErrors() []error + func (m GetExampleListPageResMultiError) Error() string + type GetExampleListPageResValidationError struct + func (e GetExampleListPageResValidationError) Cause() error + func (e GetExampleListPageResValidationError) Error() string + func (e GetExampleListPageResValidationError) ErrorName() string + func (e GetExampleListPageResValidationError) Field() string + func (e GetExampleListPageResValidationError) Key() bool + func (e GetExampleListPageResValidationError) Reason() string + type GetExampleListReq struct + Name string + Page int64 + PageSize int64 + Status *wrapperspb.BoolValue + func (*GetExampleListReq) Descriptor() ([]byte, []int) + func (*GetExampleListReq) ProtoMessage() + func (m *GetExampleListReq) Validate() error + func (m *GetExampleListReq) ValidateAll() error + func (x *GetExampleListReq) GetName() string + func (x *GetExampleListReq) GetPage() int64 + func (x *GetExampleListReq) GetPageSize() int64 + func (x *GetExampleListReq) GetStatus() *wrapperspb.BoolValue + func (x *GetExampleListReq) ProtoReflect() protoreflect.Message + func (x *GetExampleListReq) Reset() + func (x *GetExampleListReq) String() string + type GetExampleListReqMultiError []error + func (m GetExampleListReqMultiError) AllErrors() []error + func (m GetExampleListReqMultiError) Error() string + type GetExampleListReqValidationError struct + func (e GetExampleListReqValidationError) Cause() error + func (e GetExampleListReqValidationError) Error() string + func (e GetExampleListReqValidationError) ErrorName() string + func (e GetExampleListReqValidationError) Field() string + func (e GetExampleListReqValidationError) Key() bool + func (e GetExampleListReqValidationError) Reason() string + type UnimplementedExampleServiceServer struct + func (UnimplementedExampleServiceServer) CreateExample(context.Context, *CreateExampleReq) (*Example, error) + func (UnimplementedExampleServiceServer) DeleteExample(context.Context, *ExampleIdReq) (*CheckResponse, error) + func (UnimplementedExampleServiceServer) GetExample(context.Context, *ExampleIdReq) (*Example, error) + func (UnimplementedExampleServiceServer) GetExampleList(context.Context, *GetExampleListReq) (*GetExampleListPageRes, error) + func (UnimplementedExampleServiceServer) RecoverExample(context.Context, *ExampleIdReq) (*CheckResponse, error) + func (UnimplementedExampleServiceServer) UpdateExample(context.Context, *UpdateExampleReq) (*CheckResponse, error) + type UnsafeExampleServiceServer interface + type UpdateExampleReq struct + Id int64 + Name string + Status bool + func (*UpdateExampleReq) Descriptor() ([]byte, []int) + func (*UpdateExampleReq) ProtoMessage() + func (m *UpdateExampleReq) Validate() error + func (m *UpdateExampleReq) ValidateAll() error + func (x *UpdateExampleReq) GetId() int64 + func (x *UpdateExampleReq) GetName() string + func (x *UpdateExampleReq) GetStatus() bool + func (x *UpdateExampleReq) ProtoReflect() protoreflect.Message + func (x *UpdateExampleReq) Reset() + func (x *UpdateExampleReq) String() string + type UpdateExampleReqMultiError []error + func (m UpdateExampleReqMultiError) AllErrors() []error + func (m UpdateExampleReqMultiError) Error() string + type UpdateExampleReqValidationError struct + func (e UpdateExampleReqValidationError) Cause() error + func (e UpdateExampleReqValidationError) Error() string + func (e UpdateExampleReqValidationError) ErrorName() string + func (e UpdateExampleReqValidationError) Field() string + func (e UpdateExampleReqValidationError) Key() bool + func (e UpdateExampleReqValidationError) Reason() string