rpc

package
v0.15.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCategoryServiceEndpoints

func NewCategoryServiceEndpoints() []*api.Endpoint

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

Cause function returns cause value.

func (GetCategoryRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCategoryRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCategoryRequestValidationError) Field

Field function returns field value.

func (GetCategoryRequestValidationError) Key

Key function returns key value.

func (GetCategoryRequestValidationError) Reason

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

Cause function returns cause value.

func (GetCategoryResponseValidationError) Error

Error satisfies the builtin error interface

func (GetCategoryResponseValidationError) ErrorName

ErrorName returns error name.

func (GetCategoryResponseValidationError) Field

Field function returns field value.

func (GetCategoryResponseValidationError) Key

Key function returns key value.

func (GetCategoryResponseValidationError) Reason

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

Cause function returns cause value.

func (PaginateCategoryRequestValidationError) Error

Error satisfies the builtin error interface

func (PaginateCategoryRequestValidationError) ErrorName

ErrorName returns error name.

func (PaginateCategoryRequestValidationError) Field

Field function returns field value.

func (PaginateCategoryRequestValidationError) Key

Key function returns key value.

func (PaginateCategoryRequestValidationError) Reason

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

func (*PaginateCategoryRequest_Filter) ProtoMessage()

func (*PaginateCategoryRequest_Filter) Reset

func (m *PaginateCategoryRequest_Filter) Reset()

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

Cause function returns cause value.

func (PaginateCategoryRequest_FilterValidationError) Error

Error satisfies the builtin error interface

func (PaginateCategoryRequest_FilterValidationError) ErrorName

ErrorName returns error name.

func (PaginateCategoryRequest_FilterValidationError) Field

Field function returns field value.

func (PaginateCategoryRequest_FilterValidationError) Key

Key function returns key value.

func (PaginateCategoryRequest_FilterValidationError) Reason

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

Cause function returns cause value.

func (PaginateCategoryResponseValidationError) Error

Error satisfies the builtin error interface

func (PaginateCategoryResponseValidationError) ErrorName

ErrorName returns error name.

func (PaginateCategoryResponseValidationError) Field

Field function returns field value.

func (PaginateCategoryResponseValidationError) Key

Key function returns key value.

func (PaginateCategoryResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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