Documentation ¶
Index ¶
- func NewProductServiceEndpoints() []*api.Endpoint
- func RegisterProductServiceHandler(s server.Server, hdlr ProductServiceHandler, opts ...server.HandlerOption) error
- type GetProductRequest
- func (*GetProductRequest) Descriptor() ([]byte, []int)
- func (m *GetProductRequest) GetFilter() *shared.DefaultFilter
- func (m *GetProductRequest) GetUuid() string
- func (*GetProductRequest) ProtoMessage()
- func (m *GetProductRequest) Reset()
- func (m *GetProductRequest) String() string
- func (m *GetProductRequest) Validate() error
- func (m *GetProductRequest) XXX_DiscardUnknown()
- func (m *GetProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetProductRequest) XXX_Merge(src proto.Message)
- func (m *GetProductRequest) XXX_Size() int
- func (m *GetProductRequest) XXX_Unmarshal(b []byte) error
- type GetProductRequestValidationError
- func (e GetProductRequestValidationError) Cause() error
- func (e GetProductRequestValidationError) Error() string
- func (e GetProductRequestValidationError) ErrorName() string
- func (e GetProductRequestValidationError) Field() string
- func (e GetProductRequestValidationError) Key() bool
- func (e GetProductRequestValidationError) Reason() string
- type GetProductResponse
- func (*GetProductResponse) Descriptor() ([]byte, []int)
- func (m *GetProductResponse) GetData() *product.ProductFrontItem
- func (*GetProductResponse) ProtoMessage()
- func (m *GetProductResponse) Reset()
- func (m *GetProductResponse) String() string
- func (m *GetProductResponse) Validate() error
- func (m *GetProductResponse) XXX_DiscardUnknown()
- func (m *GetProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetProductResponse) XXX_Merge(src proto.Message)
- func (m *GetProductResponse) XXX_Size() int
- func (m *GetProductResponse) XXX_Unmarshal(b []byte) error
- type GetProductResponseValidationError
- func (e GetProductResponseValidationError) Cause() error
- func (e GetProductResponseValidationError) Error() string
- func (e GetProductResponseValidationError) ErrorName() string
- func (e GetProductResponseValidationError) Field() string
- func (e GetProductResponseValidationError) Key() bool
- func (e GetProductResponseValidationError) Reason() string
- type PaginateProductRequest
- func (*PaginateProductRequest) Descriptor() ([]byte, []int)
- func (m *PaginateProductRequest) GetFilter() *PaginateProductRequest_Filter
- func (m *PaginateProductRequest) GetLimit() int64
- func (m *PaginateProductRequest) GetSkip() int64
- func (m *PaginateProductRequest) GetSort() string
- func (*PaginateProductRequest) ProtoMessage()
- func (m *PaginateProductRequest) Reset()
- func (m *PaginateProductRequest) String() string
- func (m *PaginateProductRequest) Validate() error
- func (m *PaginateProductRequest) XXX_DiscardUnknown()
- func (m *PaginateProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaginateProductRequest) XXX_Merge(src proto.Message)
- func (m *PaginateProductRequest) XXX_Size() int
- func (m *PaginateProductRequest) XXX_Unmarshal(b []byte) error
- type PaginateProductRequestValidationError
- func (e PaginateProductRequestValidationError) Cause() error
- func (e PaginateProductRequestValidationError) Error() string
- func (e PaginateProductRequestValidationError) ErrorName() string
- func (e PaginateProductRequestValidationError) Field() string
- func (e PaginateProductRequestValidationError) Key() bool
- func (e PaginateProductRequestValidationError) Reason() string
- type PaginateProductRequest_Filter
- func (*PaginateProductRequest_Filter) Descriptor() ([]byte, []int)
- func (m *PaginateProductRequest_Filter) GetAncestorUuid() string
- func (m *PaginateProductRequest_Filter) GetCategoryUuid() string
- func (m *PaginateProductRequest_Filter) GetLcid() string
- func (*PaginateProductRequest_Filter) ProtoMessage()
- func (m *PaginateProductRequest_Filter) Reset()
- func (m *PaginateProductRequest_Filter) String() string
- func (m *PaginateProductRequest_Filter) Validate() error
- func (m *PaginateProductRequest_Filter) XXX_DiscardUnknown()
- func (m *PaginateProductRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaginateProductRequest_Filter) XXX_Merge(src proto.Message)
- func (m *PaginateProductRequest_Filter) XXX_Size() int
- func (m *PaginateProductRequest_Filter) XXX_Unmarshal(b []byte) error
- type PaginateProductRequest_FilterValidationError
- func (e PaginateProductRequest_FilterValidationError) Cause() error
- func (e PaginateProductRequest_FilterValidationError) Error() string
- func (e PaginateProductRequest_FilterValidationError) ErrorName() string
- func (e PaginateProductRequest_FilterValidationError) Field() string
- func (e PaginateProductRequest_FilterValidationError) Key() bool
- func (e PaginateProductRequest_FilterValidationError) Reason() string
- type PaginateProductResponse
- func (*PaginateProductResponse) Descriptor() ([]byte, []int)
- func (m *PaginateProductResponse) GetData() []*product.ProductFrontItem
- func (m *PaginateProductResponse) GetLimit() int64
- func (m *PaginateProductResponse) GetSkip() int64
- func (m *PaginateProductResponse) GetTotal() int64
- func (*PaginateProductResponse) ProtoMessage()
- func (m *PaginateProductResponse) Reset()
- func (m *PaginateProductResponse) String() string
- func (m *PaginateProductResponse) Validate() error
- func (m *PaginateProductResponse) XXX_DiscardUnknown()
- func (m *PaginateProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaginateProductResponse) XXX_Merge(src proto.Message)
- func (m *PaginateProductResponse) XXX_Size() int
- func (m *PaginateProductResponse) XXX_Unmarshal(b []byte) error
- type PaginateProductResponseValidationError
- func (e PaginateProductResponseValidationError) Cause() error
- func (e PaginateProductResponseValidationError) Error() string
- func (e PaginateProductResponseValidationError) ErrorName() string
- func (e PaginateProductResponseValidationError) Field() string
- func (e PaginateProductResponseValidationError) Key() bool
- func (e PaginateProductResponseValidationError) Reason() string
- type ProductService
- type ProductServiceHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProductServiceHandler ¶
func RegisterProductServiceHandler(s server.Server, hdlr ProductServiceHandler, opts ...server.HandlerOption) error
Types ¶
type GetProductRequest ¶
type GetProductRequest 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 (*GetProductRequest) Descriptor ¶
func (*GetProductRequest) Descriptor() ([]byte, []int)
func (*GetProductRequest) GetFilter ¶
func (m *GetProductRequest) GetFilter() *shared.DefaultFilter
func (*GetProductRequest) GetUuid ¶
func (m *GetProductRequest) GetUuid() string
func (*GetProductRequest) ProtoMessage ¶
func (*GetProductRequest) ProtoMessage()
func (*GetProductRequest) Reset ¶
func (m *GetProductRequest) Reset()
func (*GetProductRequest) String ¶
func (m *GetProductRequest) String() string
func (*GetProductRequest) Validate ¶
func (m *GetProductRequest) Validate() error
Validate checks the field values on GetProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetProductRequest) XXX_DiscardUnknown ¶
func (m *GetProductRequest) XXX_DiscardUnknown()
func (*GetProductRequest) XXX_Marshal ¶
func (m *GetProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetProductRequest) XXX_Merge ¶
func (m *GetProductRequest) XXX_Merge(src proto.Message)
func (*GetProductRequest) XXX_Size ¶
func (m *GetProductRequest) XXX_Size() int
func (*GetProductRequest) XXX_Unmarshal ¶
func (m *GetProductRequest) XXX_Unmarshal(b []byte) error
type GetProductRequestValidationError ¶
type GetProductRequestValidationError struct {
// contains filtered or unexported fields
}
GetProductRequestValidationError is the validation error returned by GetProductRequest.Validate if the designated constraints aren't met.
func (GetProductRequestValidationError) Cause ¶
func (e GetProductRequestValidationError) Cause() error
Cause function returns cause value.
func (GetProductRequestValidationError) Error ¶
func (e GetProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetProductRequestValidationError) ErrorName ¶
func (e GetProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetProductRequestValidationError) Field ¶
func (e GetProductRequestValidationError) Field() string
Field function returns field value.
func (GetProductRequestValidationError) Key ¶
func (e GetProductRequestValidationError) Key() bool
Key function returns key value.
func (GetProductRequestValidationError) Reason ¶
func (e GetProductRequestValidationError) Reason() string
Reason function returns reason value.
type GetProductResponse ¶
type GetProductResponse struct {
Data *product.ProductFrontItem `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
}
func (*GetProductResponse) Descriptor ¶
func (*GetProductResponse) Descriptor() ([]byte, []int)
func (*GetProductResponse) GetData ¶
func (m *GetProductResponse) GetData() *product.ProductFrontItem
func (*GetProductResponse) ProtoMessage ¶
func (*GetProductResponse) ProtoMessage()
func (*GetProductResponse) Reset ¶
func (m *GetProductResponse) Reset()
func (*GetProductResponse) String ¶
func (m *GetProductResponse) String() string
func (*GetProductResponse) Validate ¶
func (m *GetProductResponse) Validate() error
Validate checks the field values on GetProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetProductResponse) XXX_DiscardUnknown ¶
func (m *GetProductResponse) XXX_DiscardUnknown()
func (*GetProductResponse) XXX_Marshal ¶
func (m *GetProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetProductResponse) XXX_Merge ¶
func (m *GetProductResponse) XXX_Merge(src proto.Message)
func (*GetProductResponse) XXX_Size ¶
func (m *GetProductResponse) XXX_Size() int
func (*GetProductResponse) XXX_Unmarshal ¶
func (m *GetProductResponse) XXX_Unmarshal(b []byte) error
type GetProductResponseValidationError ¶
type GetProductResponseValidationError struct {
// contains filtered or unexported fields
}
GetProductResponseValidationError is the validation error returned by GetProductResponse.Validate if the designated constraints aren't met.
func (GetProductResponseValidationError) Cause ¶
func (e GetProductResponseValidationError) Cause() error
Cause function returns cause value.
func (GetProductResponseValidationError) Error ¶
func (e GetProductResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetProductResponseValidationError) ErrorName ¶
func (e GetProductResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetProductResponseValidationError) Field ¶
func (e GetProductResponseValidationError) Field() string
Field function returns field value.
func (GetProductResponseValidationError) Key ¶
func (e GetProductResponseValidationError) Key() bool
Key function returns key value.
func (GetProductResponseValidationError) Reason ¶
func (e GetProductResponseValidationError) Reason() string
Reason function returns reason value.
type PaginateProductRequest ¶
type PaginateProductRequest 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 *PaginateProductRequest_Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter"` }
func (*PaginateProductRequest) Descriptor ¶
func (*PaginateProductRequest) Descriptor() ([]byte, []int)
func (*PaginateProductRequest) GetFilter ¶
func (m *PaginateProductRequest) GetFilter() *PaginateProductRequest_Filter
func (*PaginateProductRequest) GetLimit ¶
func (m *PaginateProductRequest) GetLimit() int64
func (*PaginateProductRequest) GetSkip ¶
func (m *PaginateProductRequest) GetSkip() int64
func (*PaginateProductRequest) GetSort ¶
func (m *PaginateProductRequest) GetSort() string
func (*PaginateProductRequest) ProtoMessage ¶
func (*PaginateProductRequest) ProtoMessage()
func (*PaginateProductRequest) Reset ¶
func (m *PaginateProductRequest) Reset()
func (*PaginateProductRequest) String ¶
func (m *PaginateProductRequest) String() string
func (*PaginateProductRequest) Validate ¶
func (m *PaginateProductRequest) Validate() error
Validate checks the field values on PaginateProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PaginateProductRequest) XXX_DiscardUnknown ¶
func (m *PaginateProductRequest) XXX_DiscardUnknown()
func (*PaginateProductRequest) XXX_Marshal ¶
func (m *PaginateProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateProductRequest) XXX_Merge ¶
func (m *PaginateProductRequest) XXX_Merge(src proto.Message)
func (*PaginateProductRequest) XXX_Size ¶
func (m *PaginateProductRequest) XXX_Size() int
func (*PaginateProductRequest) XXX_Unmarshal ¶
func (m *PaginateProductRequest) XXX_Unmarshal(b []byte) error
type PaginateProductRequestValidationError ¶
type PaginateProductRequestValidationError struct {
// contains filtered or unexported fields
}
PaginateProductRequestValidationError is the validation error returned by PaginateProductRequest.Validate if the designated constraints aren't met.
func (PaginateProductRequestValidationError) Cause ¶
func (e PaginateProductRequestValidationError) Cause() error
Cause function returns cause value.
func (PaginateProductRequestValidationError) Error ¶
func (e PaginateProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateProductRequestValidationError) ErrorName ¶
func (e PaginateProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateProductRequestValidationError) Field ¶
func (e PaginateProductRequestValidationError) Field() string
Field function returns field value.
func (PaginateProductRequestValidationError) Key ¶
func (e PaginateProductRequestValidationError) Key() bool
Key function returns key value.
func (PaginateProductRequestValidationError) Reason ¶
func (e PaginateProductRequestValidationError) Reason() string
Reason function returns reason value.
type PaginateProductRequest_Filter ¶
type PaginateProductRequest_Filter struct { Lcid string `protobuf:"bytes,1,opt,name=lcid,proto3" json:"lcid"` CategoryUuid string `protobuf:"bytes,2,opt,name=category_uuid,json=categoryUuid,proto3" json:"category_uuid"` AncestorUuid string `protobuf:"bytes,3,opt,name=ancestor_uuid,json=ancestorUuid,proto3" json:"ancestor_uuid"` }
func (*PaginateProductRequest_Filter) Descriptor ¶
func (*PaginateProductRequest_Filter) Descriptor() ([]byte, []int)
func (*PaginateProductRequest_Filter) GetAncestorUuid ¶
func (m *PaginateProductRequest_Filter) GetAncestorUuid() string
func (*PaginateProductRequest_Filter) GetCategoryUuid ¶
func (m *PaginateProductRequest_Filter) GetCategoryUuid() string
func (*PaginateProductRequest_Filter) GetLcid ¶
func (m *PaginateProductRequest_Filter) GetLcid() string
func (*PaginateProductRequest_Filter) ProtoMessage ¶
func (*PaginateProductRequest_Filter) ProtoMessage()
func (*PaginateProductRequest_Filter) Reset ¶
func (m *PaginateProductRequest_Filter) Reset()
func (*PaginateProductRequest_Filter) String ¶
func (m *PaginateProductRequest_Filter) String() string
func (*PaginateProductRequest_Filter) Validate ¶
func (m *PaginateProductRequest_Filter) Validate() error
Validate checks the field values on PaginateProductRequest_Filter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PaginateProductRequest_Filter) XXX_DiscardUnknown ¶
func (m *PaginateProductRequest_Filter) XXX_DiscardUnknown()
func (*PaginateProductRequest_Filter) XXX_Marshal ¶
func (m *PaginateProductRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateProductRequest_Filter) XXX_Merge ¶
func (m *PaginateProductRequest_Filter) XXX_Merge(src proto.Message)
func (*PaginateProductRequest_Filter) XXX_Size ¶
func (m *PaginateProductRequest_Filter) XXX_Size() int
func (*PaginateProductRequest_Filter) XXX_Unmarshal ¶
func (m *PaginateProductRequest_Filter) XXX_Unmarshal(b []byte) error
type PaginateProductRequest_FilterValidationError ¶
type PaginateProductRequest_FilterValidationError struct {
// contains filtered or unexported fields
}
PaginateProductRequest_FilterValidationError is the validation error returned by PaginateProductRequest_Filter.Validate if the designated constraints aren't met.
func (PaginateProductRequest_FilterValidationError) Cause ¶
func (e PaginateProductRequest_FilterValidationError) Cause() error
Cause function returns cause value.
func (PaginateProductRequest_FilterValidationError) Error ¶
func (e PaginateProductRequest_FilterValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateProductRequest_FilterValidationError) ErrorName ¶
func (e PaginateProductRequest_FilterValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateProductRequest_FilterValidationError) Field ¶
func (e PaginateProductRequest_FilterValidationError) Field() string
Field function returns field value.
func (PaginateProductRequest_FilterValidationError) Key ¶
func (e PaginateProductRequest_FilterValidationError) Key() bool
Key function returns key value.
func (PaginateProductRequest_FilterValidationError) Reason ¶
func (e PaginateProductRequest_FilterValidationError) Reason() string
Reason function returns reason value.
type PaginateProductResponse ¶
type PaginateProductResponse 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 []*product.ProductFrontItem `protobuf:"bytes,4,rep,name=data,proto3" json:"data"` }
func (*PaginateProductResponse) Descriptor ¶
func (*PaginateProductResponse) Descriptor() ([]byte, []int)
func (*PaginateProductResponse) GetData ¶
func (m *PaginateProductResponse) GetData() []*product.ProductFrontItem
func (*PaginateProductResponse) GetLimit ¶
func (m *PaginateProductResponse) GetLimit() int64
func (*PaginateProductResponse) GetSkip ¶
func (m *PaginateProductResponse) GetSkip() int64
func (*PaginateProductResponse) GetTotal ¶
func (m *PaginateProductResponse) GetTotal() int64
func (*PaginateProductResponse) ProtoMessage ¶
func (*PaginateProductResponse) ProtoMessage()
func (*PaginateProductResponse) Reset ¶
func (m *PaginateProductResponse) Reset()
func (*PaginateProductResponse) String ¶
func (m *PaginateProductResponse) String() string
func (*PaginateProductResponse) Validate ¶
func (m *PaginateProductResponse) Validate() error
Validate checks the field values on PaginateProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PaginateProductResponse) XXX_DiscardUnknown ¶
func (m *PaginateProductResponse) XXX_DiscardUnknown()
func (*PaginateProductResponse) XXX_Marshal ¶
func (m *PaginateProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateProductResponse) XXX_Merge ¶
func (m *PaginateProductResponse) XXX_Merge(src proto.Message)
func (*PaginateProductResponse) XXX_Size ¶
func (m *PaginateProductResponse) XXX_Size() int
func (*PaginateProductResponse) XXX_Unmarshal ¶
func (m *PaginateProductResponse) XXX_Unmarshal(b []byte) error
type PaginateProductResponseValidationError ¶
type PaginateProductResponseValidationError struct {
// contains filtered or unexported fields
}
PaginateProductResponseValidationError is the validation error returned by PaginateProductResponse.Validate if the designated constraints aren't met.
func (PaginateProductResponseValidationError) Cause ¶
func (e PaginateProductResponseValidationError) Cause() error
Cause function returns cause value.
func (PaginateProductResponseValidationError) Error ¶
func (e PaginateProductResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateProductResponseValidationError) ErrorName ¶
func (e PaginateProductResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateProductResponseValidationError) Field ¶
func (e PaginateProductResponseValidationError) Field() string
Field function returns field value.
func (PaginateProductResponseValidationError) Key ¶
func (e PaginateProductResponseValidationError) Key() bool
Key function returns key value.
func (PaginateProductResponseValidationError) Reason ¶
func (e PaginateProductResponseValidationError) Reason() string
Reason function returns reason value.
type ProductService ¶
type ProductService interface { Paginate(ctx context.Context, in *PaginateProductRequest, opts ...client.CallOption) (*PaginateProductResponse, error) Get(ctx context.Context, in *GetProductRequest, opts ...client.CallOption) (*GetProductResponse, error) }
func NewProductService ¶
func NewProductService(name string, c client.Client) ProductService
type ProductServiceHandler ¶
type ProductServiceHandler interface { Paginate(context.Context, *PaginateProductRequest, *PaginateProductResponse) error Get(context.Context, *GetProductRequest, *GetProductResponse) error }