Documentation ¶
Index ¶
- func NewCategoryServiceEndpoints() []*api.Endpoint
- func RegisterCategoryServiceHandler(s server.Server, hdlr CategoryServiceHandler, opts ...server.HandlerOption) error
- type CategoryService
- type CategoryServiceHandler
- type GetCategoryRequest
- func (*GetCategoryRequest) Descriptor() ([]byte, []int)
- func (m *GetCategoryRequest) GetFilter() *shared.DefaultFilter
- func (m *GetCategoryRequest) GetUuid() string
- func (*GetCategoryRequest) ProtoMessage()
- func (m *GetCategoryRequest) Reset()
- func (m *GetCategoryRequest) String() string
- func (m *GetCategoryRequest) Validate() error
- func (m *GetCategoryRequest) XXX_DiscardUnknown()
- func (m *GetCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCategoryRequest) XXX_Merge(src proto.Message)
- func (m *GetCategoryRequest) XXX_Size() int
- func (m *GetCategoryRequest) XXX_Unmarshal(b []byte) error
- type GetCategoryRequestValidationError
- func (e GetCategoryRequestValidationError) Cause() error
- func (e GetCategoryRequestValidationError) Error() string
- func (e GetCategoryRequestValidationError) ErrorName() string
- func (e GetCategoryRequestValidationError) Field() string
- func (e GetCategoryRequestValidationError) Key() bool
- func (e GetCategoryRequestValidationError) Reason() string
- type GetCategoryResponse
- func (*GetCategoryResponse) Descriptor() ([]byte, []int)
- func (m *GetCategoryResponse) GetData() *category.CategoryFrontItem
- func (*GetCategoryResponse) ProtoMessage()
- func (m *GetCategoryResponse) Reset()
- func (m *GetCategoryResponse) String() string
- func (m *GetCategoryResponse) Validate() error
- func (m *GetCategoryResponse) XXX_DiscardUnknown()
- func (m *GetCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCategoryResponse) XXX_Merge(src proto.Message)
- func (m *GetCategoryResponse) XXX_Size() int
- func (m *GetCategoryResponse) XXX_Unmarshal(b []byte) error
- type GetCategoryResponseValidationError
- func (e GetCategoryResponseValidationError) Cause() error
- func (e GetCategoryResponseValidationError) Error() string
- func (e GetCategoryResponseValidationError) ErrorName() string
- func (e GetCategoryResponseValidationError) Field() string
- func (e GetCategoryResponseValidationError) Key() bool
- func (e GetCategoryResponseValidationError) Reason() string
- type PaginateCategoryRequest
- func (*PaginateCategoryRequest) Descriptor() ([]byte, []int)
- func (m *PaginateCategoryRequest) GetFilter() *PaginateCategoryRequest_Filter
- func (m *PaginateCategoryRequest) GetLimit() int64
- func (m *PaginateCategoryRequest) GetSkip() int64
- func (m *PaginateCategoryRequest) GetSort() string
- func (*PaginateCategoryRequest) ProtoMessage()
- func (m *PaginateCategoryRequest) Reset()
- func (m *PaginateCategoryRequest) String() string
- func (m *PaginateCategoryRequest) Validate() error
- func (m *PaginateCategoryRequest) XXX_DiscardUnknown()
- func (m *PaginateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaginateCategoryRequest) XXX_Merge(src proto.Message)
- func (m *PaginateCategoryRequest) XXX_Size() int
- func (m *PaginateCategoryRequest) XXX_Unmarshal(b []byte) error
- type PaginateCategoryRequestValidationError
- func (e PaginateCategoryRequestValidationError) Cause() error
- func (e PaginateCategoryRequestValidationError) Error() string
- func (e PaginateCategoryRequestValidationError) ErrorName() string
- func (e PaginateCategoryRequestValidationError) Field() string
- func (e PaginateCategoryRequestValidationError) Key() bool
- func (e PaginateCategoryRequestValidationError) Reason() string
- type PaginateCategoryRequest_Filter
- func (*PaginateCategoryRequest_Filter) Descriptor() ([]byte, []int)
- func (m *PaginateCategoryRequest_Filter) GetAncestorUuid() string
- func (m *PaginateCategoryRequest_Filter) GetLcid() string
- func (*PaginateCategoryRequest_Filter) ProtoMessage()
- func (m *PaginateCategoryRequest_Filter) Reset()
- func (m *PaginateCategoryRequest_Filter) String() string
- func (m *PaginateCategoryRequest_Filter) Validate() error
- func (m *PaginateCategoryRequest_Filter) XXX_DiscardUnknown()
- func (m *PaginateCategoryRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaginateCategoryRequest_Filter) XXX_Merge(src proto.Message)
- func (m *PaginateCategoryRequest_Filter) XXX_Size() int
- func (m *PaginateCategoryRequest_Filter) XXX_Unmarshal(b []byte) error
- type PaginateCategoryRequest_FilterValidationError
- func (e PaginateCategoryRequest_FilterValidationError) Cause() error
- func (e PaginateCategoryRequest_FilterValidationError) Error() string
- func (e PaginateCategoryRequest_FilterValidationError) ErrorName() string
- func (e PaginateCategoryRequest_FilterValidationError) Field() string
- func (e PaginateCategoryRequest_FilterValidationError) Key() bool
- func (e PaginateCategoryRequest_FilterValidationError) Reason() string
- type PaginateCategoryResponse
- func (*PaginateCategoryResponse) Descriptor() ([]byte, []int)
- func (m *PaginateCategoryResponse) GetData() []*category.CategoryFrontItem
- func (m *PaginateCategoryResponse) GetLimit() int64
- func (m *PaginateCategoryResponse) GetSkip() int64
- func (m *PaginateCategoryResponse) GetTotal() int64
- func (*PaginateCategoryResponse) ProtoMessage()
- func (m *PaginateCategoryResponse) Reset()
- func (m *PaginateCategoryResponse) String() string
- func (m *PaginateCategoryResponse) Validate() error
- func (m *PaginateCategoryResponse) XXX_DiscardUnknown()
- func (m *PaginateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaginateCategoryResponse) XXX_Merge(src proto.Message)
- func (m *PaginateCategoryResponse) XXX_Size() int
- func (m *PaginateCategoryResponse) XXX_Unmarshal(b []byte) error
- type PaginateCategoryResponseValidationError
- func (e PaginateCategoryResponseValidationError) Cause() error
- func (e PaginateCategoryResponseValidationError) Error() string
- func (e PaginateCategoryResponseValidationError) ErrorName() string
- func (e PaginateCategoryResponseValidationError) Field() string
- func (e PaginateCategoryResponseValidationError) Key() bool
- func (e PaginateCategoryResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCategoryServiceHandler ¶
func RegisterCategoryServiceHandler(s server.Server, hdlr CategoryServiceHandler, opts ...server.HandlerOption) error
Types ¶
type CategoryService ¶
type CategoryService interface { Paginate(ctx context.Context, in *PaginateCategoryRequest, opts ...client.CallOption) (*PaginateCategoryResponse, error) Get(ctx context.Context, in *GetCategoryRequest, opts ...client.CallOption) (*GetCategoryResponse, error) }
func NewCategoryService ¶
func NewCategoryService(name string, c client.Client) CategoryService
type CategoryServiceHandler ¶
type CategoryServiceHandler interface { Paginate(context.Context, *PaginateCategoryRequest, *PaginateCategoryResponse) error Get(context.Context, *GetCategoryRequest, *GetCategoryResponse) error }
type GetCategoryRequest ¶
type GetCategoryRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` Filter *shared.DefaultFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter"` }
func (*GetCategoryRequest) Descriptor ¶
func (*GetCategoryRequest) Descriptor() ([]byte, []int)
func (*GetCategoryRequest) GetFilter ¶
func (m *GetCategoryRequest) GetFilter() *shared.DefaultFilter
func (*GetCategoryRequest) GetUuid ¶
func (m *GetCategoryRequest) GetUuid() string
func (*GetCategoryRequest) ProtoMessage ¶
func (*GetCategoryRequest) ProtoMessage()
func (*GetCategoryRequest) Reset ¶
func (m *GetCategoryRequest) Reset()
func (*GetCategoryRequest) String ¶
func (m *GetCategoryRequest) String() string
func (*GetCategoryRequest) Validate ¶
func (m *GetCategoryRequest) Validate() error
Validate checks the field values on GetCategoryRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetCategoryRequest) XXX_DiscardUnknown ¶
func (m *GetCategoryRequest) XXX_DiscardUnknown()
func (*GetCategoryRequest) XXX_Marshal ¶
func (m *GetCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCategoryRequest) XXX_Merge ¶
func (m *GetCategoryRequest) XXX_Merge(src proto.Message)
func (*GetCategoryRequest) XXX_Size ¶
func (m *GetCategoryRequest) XXX_Size() int
func (*GetCategoryRequest) XXX_Unmarshal ¶
func (m *GetCategoryRequest) XXX_Unmarshal(b []byte) error
type GetCategoryRequestValidationError ¶
type GetCategoryRequestValidationError struct {
// contains filtered or unexported fields
}
GetCategoryRequestValidationError is the validation error returned by GetCategoryRequest.Validate if the designated constraints aren't met.
func (GetCategoryRequestValidationError) Cause ¶
func (e GetCategoryRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCategoryRequestValidationError) Error ¶
func (e GetCategoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCategoryRequestValidationError) ErrorName ¶
func (e GetCategoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCategoryRequestValidationError) Field ¶
func (e GetCategoryRequestValidationError) Field() string
Field function returns field value.
func (GetCategoryRequestValidationError) Key ¶
func (e GetCategoryRequestValidationError) Key() bool
Key function returns key value.
func (GetCategoryRequestValidationError) Reason ¶
func (e GetCategoryRequestValidationError) Reason() string
Reason function returns reason value.
type GetCategoryResponse ¶
type GetCategoryResponse struct {
Data *category.CategoryFrontItem `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
}
func (*GetCategoryResponse) Descriptor ¶
func (*GetCategoryResponse) Descriptor() ([]byte, []int)
func (*GetCategoryResponse) GetData ¶
func (m *GetCategoryResponse) GetData() *category.CategoryFrontItem
func (*GetCategoryResponse) ProtoMessage ¶
func (*GetCategoryResponse) ProtoMessage()
func (*GetCategoryResponse) Reset ¶
func (m *GetCategoryResponse) Reset()
func (*GetCategoryResponse) String ¶
func (m *GetCategoryResponse) String() string
func (*GetCategoryResponse) Validate ¶
func (m *GetCategoryResponse) Validate() error
Validate checks the field values on GetCategoryResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetCategoryResponse) XXX_DiscardUnknown ¶
func (m *GetCategoryResponse) XXX_DiscardUnknown()
func (*GetCategoryResponse) XXX_Marshal ¶
func (m *GetCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCategoryResponse) XXX_Merge ¶
func (m *GetCategoryResponse) XXX_Merge(src proto.Message)
func (*GetCategoryResponse) XXX_Size ¶
func (m *GetCategoryResponse) XXX_Size() int
func (*GetCategoryResponse) XXX_Unmarshal ¶
func (m *GetCategoryResponse) XXX_Unmarshal(b []byte) error
type GetCategoryResponseValidationError ¶
type GetCategoryResponseValidationError struct {
// contains filtered or unexported fields
}
GetCategoryResponseValidationError is the validation error returned by GetCategoryResponse.Validate if the designated constraints aren't met.
func (GetCategoryResponseValidationError) Cause ¶
func (e GetCategoryResponseValidationError) Cause() error
Cause function returns cause value.
func (GetCategoryResponseValidationError) Error ¶
func (e GetCategoryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetCategoryResponseValidationError) ErrorName ¶
func (e GetCategoryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetCategoryResponseValidationError) Field ¶
func (e GetCategoryResponseValidationError) Field() string
Field function returns field value.
func (GetCategoryResponseValidationError) Key ¶
func (e GetCategoryResponseValidationError) Key() bool
Key function returns key value.
func (GetCategoryResponseValidationError) Reason ¶
func (e GetCategoryResponseValidationError) Reason() string
Reason function returns reason value.
type PaginateCategoryRequest ¶
type PaginateCategoryRequest struct { Skip int64 `protobuf:"varint,1,opt,name=skip,proto3" json:"skip"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit"` Sort string `protobuf:"bytes,3,opt,name=sort,proto3" json:"sort"` Filter *PaginateCategoryRequest_Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter"` }
func (*PaginateCategoryRequest) Descriptor ¶
func (*PaginateCategoryRequest) Descriptor() ([]byte, []int)
func (*PaginateCategoryRequest) GetFilter ¶
func (m *PaginateCategoryRequest) GetFilter() *PaginateCategoryRequest_Filter
func (*PaginateCategoryRequest) GetLimit ¶
func (m *PaginateCategoryRequest) GetLimit() int64
func (*PaginateCategoryRequest) GetSkip ¶
func (m *PaginateCategoryRequest) GetSkip() int64
func (*PaginateCategoryRequest) GetSort ¶
func (m *PaginateCategoryRequest) GetSort() string
func (*PaginateCategoryRequest) ProtoMessage ¶
func (*PaginateCategoryRequest) ProtoMessage()
func (*PaginateCategoryRequest) Reset ¶
func (m *PaginateCategoryRequest) Reset()
func (*PaginateCategoryRequest) String ¶
func (m *PaginateCategoryRequest) String() string
func (*PaginateCategoryRequest) Validate ¶
func (m *PaginateCategoryRequest) Validate() error
Validate checks the field values on PaginateCategoryRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PaginateCategoryRequest) XXX_DiscardUnknown ¶
func (m *PaginateCategoryRequest) XXX_DiscardUnknown()
func (*PaginateCategoryRequest) XXX_Marshal ¶
func (m *PaginateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateCategoryRequest) XXX_Merge ¶
func (m *PaginateCategoryRequest) XXX_Merge(src proto.Message)
func (*PaginateCategoryRequest) XXX_Size ¶
func (m *PaginateCategoryRequest) XXX_Size() int
func (*PaginateCategoryRequest) XXX_Unmarshal ¶
func (m *PaginateCategoryRequest) XXX_Unmarshal(b []byte) error
type PaginateCategoryRequestValidationError ¶
type PaginateCategoryRequestValidationError struct {
// contains filtered or unexported fields
}
PaginateCategoryRequestValidationError is the validation error returned by PaginateCategoryRequest.Validate if the designated constraints aren't met.
func (PaginateCategoryRequestValidationError) Cause ¶
func (e PaginateCategoryRequestValidationError) Cause() error
Cause function returns cause value.
func (PaginateCategoryRequestValidationError) Error ¶
func (e PaginateCategoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateCategoryRequestValidationError) ErrorName ¶
func (e PaginateCategoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateCategoryRequestValidationError) Field ¶
func (e PaginateCategoryRequestValidationError) Field() string
Field function returns field value.
func (PaginateCategoryRequestValidationError) Key ¶
func (e PaginateCategoryRequestValidationError) Key() bool
Key function returns key value.
func (PaginateCategoryRequestValidationError) Reason ¶
func (e PaginateCategoryRequestValidationError) Reason() string
Reason function returns reason value.
type PaginateCategoryRequest_Filter ¶
type PaginateCategoryRequest_Filter struct { Lcid string `protobuf:"bytes,1,opt,name=lcid,proto3" json:"lcid"` AncestorUuid string `protobuf:"bytes,2,opt,name=ancestor_uuid,json=ancestorUuid,proto3" json:"ancestor_uuid"` }
func (*PaginateCategoryRequest_Filter) Descriptor ¶
func (*PaginateCategoryRequest_Filter) Descriptor() ([]byte, []int)
func (*PaginateCategoryRequest_Filter) GetAncestorUuid ¶
func (m *PaginateCategoryRequest_Filter) GetAncestorUuid() string
func (*PaginateCategoryRequest_Filter) GetLcid ¶
func (m *PaginateCategoryRequest_Filter) GetLcid() string
func (*PaginateCategoryRequest_Filter) ProtoMessage ¶
func (*PaginateCategoryRequest_Filter) ProtoMessage()
func (*PaginateCategoryRequest_Filter) Reset ¶
func (m *PaginateCategoryRequest_Filter) Reset()
func (*PaginateCategoryRequest_Filter) String ¶
func (m *PaginateCategoryRequest_Filter) String() string
func (*PaginateCategoryRequest_Filter) Validate ¶
func (m *PaginateCategoryRequest_Filter) Validate() error
Validate checks the field values on PaginateCategoryRequest_Filter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PaginateCategoryRequest_Filter) XXX_DiscardUnknown ¶
func (m *PaginateCategoryRequest_Filter) XXX_DiscardUnknown()
func (*PaginateCategoryRequest_Filter) XXX_Marshal ¶
func (m *PaginateCategoryRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateCategoryRequest_Filter) XXX_Merge ¶
func (m *PaginateCategoryRequest_Filter) XXX_Merge(src proto.Message)
func (*PaginateCategoryRequest_Filter) XXX_Size ¶
func (m *PaginateCategoryRequest_Filter) XXX_Size() int
func (*PaginateCategoryRequest_Filter) XXX_Unmarshal ¶
func (m *PaginateCategoryRequest_Filter) XXX_Unmarshal(b []byte) error
type PaginateCategoryRequest_FilterValidationError ¶
type PaginateCategoryRequest_FilterValidationError struct {
// contains filtered or unexported fields
}
PaginateCategoryRequest_FilterValidationError is the validation error returned by PaginateCategoryRequest_Filter.Validate if the designated constraints aren't met.
func (PaginateCategoryRequest_FilterValidationError) Cause ¶
func (e PaginateCategoryRequest_FilterValidationError) Cause() error
Cause function returns cause value.
func (PaginateCategoryRequest_FilterValidationError) Error ¶
func (e PaginateCategoryRequest_FilterValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateCategoryRequest_FilterValidationError) ErrorName ¶
func (e PaginateCategoryRequest_FilterValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateCategoryRequest_FilterValidationError) Field ¶
func (e PaginateCategoryRequest_FilterValidationError) Field() string
Field function returns field value.
func (PaginateCategoryRequest_FilterValidationError) Key ¶
func (e PaginateCategoryRequest_FilterValidationError) Key() bool
Key function returns key value.
func (PaginateCategoryRequest_FilterValidationError) Reason ¶
func (e PaginateCategoryRequest_FilterValidationError) Reason() string
Reason function returns reason value.
type PaginateCategoryResponse ¶
type PaginateCategoryResponse struct { Skip int64 `protobuf:"varint,1,opt,name=skip,proto3" json:"skip"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total"` Data []*category.CategoryFrontItem `protobuf:"bytes,4,rep,name=data,proto3" json:"data"` }
func (*PaginateCategoryResponse) Descriptor ¶
func (*PaginateCategoryResponse) Descriptor() ([]byte, []int)
func (*PaginateCategoryResponse) GetData ¶
func (m *PaginateCategoryResponse) GetData() []*category.CategoryFrontItem
func (*PaginateCategoryResponse) GetLimit ¶
func (m *PaginateCategoryResponse) GetLimit() int64
func (*PaginateCategoryResponse) GetSkip ¶
func (m *PaginateCategoryResponse) GetSkip() int64
func (*PaginateCategoryResponse) GetTotal ¶
func (m *PaginateCategoryResponse) GetTotal() int64
func (*PaginateCategoryResponse) ProtoMessage ¶
func (*PaginateCategoryResponse) ProtoMessage()
func (*PaginateCategoryResponse) Reset ¶
func (m *PaginateCategoryResponse) Reset()
func (*PaginateCategoryResponse) String ¶
func (m *PaginateCategoryResponse) String() string
func (*PaginateCategoryResponse) Validate ¶
func (m *PaginateCategoryResponse) Validate() error
Validate checks the field values on PaginateCategoryResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PaginateCategoryResponse) XXX_DiscardUnknown ¶
func (m *PaginateCategoryResponse) XXX_DiscardUnknown()
func (*PaginateCategoryResponse) XXX_Marshal ¶
func (m *PaginateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateCategoryResponse) XXX_Merge ¶
func (m *PaginateCategoryResponse) XXX_Merge(src proto.Message)
func (*PaginateCategoryResponse) XXX_Size ¶
func (m *PaginateCategoryResponse) XXX_Size() int
func (*PaginateCategoryResponse) XXX_Unmarshal ¶
func (m *PaginateCategoryResponse) XXX_Unmarshal(b []byte) error
type PaginateCategoryResponseValidationError ¶
type PaginateCategoryResponseValidationError struct {
// contains filtered or unexported fields
}
PaginateCategoryResponseValidationError is the validation error returned by PaginateCategoryResponse.Validate if the designated constraints aren't met.
func (PaginateCategoryResponseValidationError) Cause ¶
func (e PaginateCategoryResponseValidationError) Cause() error
Cause function returns cause value.
func (PaginateCategoryResponseValidationError) Error ¶
func (e PaginateCategoryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateCategoryResponseValidationError) ErrorName ¶
func (e PaginateCategoryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateCategoryResponseValidationError) Field ¶
func (e PaginateCategoryResponseValidationError) Field() string
Field function returns field value.
func (PaginateCategoryResponseValidationError) Key ¶
func (e PaginateCategoryResponseValidationError) Key() bool
Key function returns key value.
func (PaginateCategoryResponseValidationError) Reason ¶
func (e PaginateCategoryResponseValidationError) Reason() string
Reason function returns reason value.