rpc

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProductServiceEndpoints

func NewProductServiceEndpoints() []*api.Endpoint

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

Cause function returns cause value.

func (GetProductRequestValidationError) Error

Error satisfies the builtin error interface

func (GetProductRequestValidationError) ErrorName

ErrorName returns error name.

func (GetProductRequestValidationError) Field

Field function returns field value.

func (GetProductRequestValidationError) Key

Key function returns key value.

func (GetProductRequestValidationError) Reason

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 (*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

Cause function returns cause value.

func (GetProductResponseValidationError) Error

Error satisfies the builtin error interface

func (GetProductResponseValidationError) ErrorName

ErrorName returns error name.

func (GetProductResponseValidationError) Field

Field function returns field value.

func (GetProductResponseValidationError) Key

Key function returns key value.

func (GetProductResponseValidationError) Reason

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 (*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

Cause function returns cause value.

func (PaginateProductRequestValidationError) Error

Error satisfies the builtin error interface

func (PaginateProductRequestValidationError) ErrorName

ErrorName returns error name.

func (PaginateProductRequestValidationError) Field

Field function returns field value.

func (PaginateProductRequestValidationError) Key

Key function returns key value.

func (PaginateProductRequestValidationError) Reason

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 (*PaginateProductRequest_Filter) ProtoMessage

func (*PaginateProductRequest_Filter) ProtoMessage()

func (*PaginateProductRequest_Filter) Reset

func (m *PaginateProductRequest_Filter) Reset()

func (*PaginateProductRequest_Filter) 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

Cause function returns cause value.

func (PaginateProductRequest_FilterValidationError) Error

Error satisfies the builtin error interface

func (PaginateProductRequest_FilterValidationError) ErrorName

ErrorName returns error name.

func (PaginateProductRequest_FilterValidationError) Field

Field function returns field value.

func (PaginateProductRequest_FilterValidationError) Key

Key function returns key value.

func (PaginateProductRequest_FilterValidationError) Reason

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 (*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

Cause function returns cause value.

func (PaginateProductResponseValidationError) Error

Error satisfies the builtin error interface

func (PaginateProductResponseValidationError) ErrorName

ErrorName returns error name.

func (PaginateProductResponseValidationError) Field

Field function returns field value.

func (PaginateProductResponseValidationError) Key

Key function returns key value.

func (PaginateProductResponseValidationError) Reason

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

Jump to

Keyboard shortcuts

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