rpc

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuyerServiceEndpoints

func NewBuyerServiceEndpoints() []*api.Endpoint

func RegisterBuyerServiceHandler

func RegisterBuyerServiceHandler(s server.Server, hdlr BuyerServiceHandler, opts ...server.HandlerOption) error

Types

type BuyerService

type BuyerService interface {
	Paginate(ctx context.Context, in *PaginateBuyerRequest, opts ...client.CallOption) (*PaginateBuyerResponse, error)
	Get(ctx context.Context, in *GetBuyerRequest, opts ...client.CallOption) (*GetBuyerResponse, error)
}

func NewBuyerService

func NewBuyerService(name string, c client.Client) BuyerService

type GetBuyerRequest

type GetBuyerRequest 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 (*GetBuyerRequest) Descriptor

func (*GetBuyerRequest) Descriptor() ([]byte, []int)

func (*GetBuyerRequest) GetFilter

func (m *GetBuyerRequest) GetFilter() *shared.DefaultFilter

func (*GetBuyerRequest) GetUuid

func (m *GetBuyerRequest) GetUuid() string

func (*GetBuyerRequest) ProtoMessage

func (*GetBuyerRequest) ProtoMessage()

func (*GetBuyerRequest) Reset

func (m *GetBuyerRequest) Reset()

func (*GetBuyerRequest) String

func (m *GetBuyerRequest) String() string

func (*GetBuyerRequest) Validate

func (m *GetBuyerRequest) Validate() error

Validate checks the field values on GetBuyerRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*GetBuyerRequest) XXX_DiscardUnknown

func (m *GetBuyerRequest) XXX_DiscardUnknown()

func (*GetBuyerRequest) XXX_Marshal

func (m *GetBuyerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBuyerRequest) XXX_Merge

func (m *GetBuyerRequest) XXX_Merge(src proto.Message)

func (*GetBuyerRequest) XXX_Size

func (m *GetBuyerRequest) XXX_Size() int

func (*GetBuyerRequest) XXX_Unmarshal

func (m *GetBuyerRequest) XXX_Unmarshal(b []byte) error

type GetBuyerRequestValidationError

type GetBuyerRequestValidationError struct {
	// contains filtered or unexported fields
}

GetBuyerRequestValidationError is the validation error returned by GetBuyerRequest.Validate if the designated constraints aren't met.

func (GetBuyerRequestValidationError) Cause

Cause function returns cause value.

func (GetBuyerRequestValidationError) Error

Error satisfies the builtin error interface

func (GetBuyerRequestValidationError) ErrorName

func (e GetBuyerRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetBuyerRequestValidationError) Field

Field function returns field value.

func (GetBuyerRequestValidationError) Key

Key function returns key value.

func (GetBuyerRequestValidationError) Reason

Reason function returns reason value.

type GetBuyerResponse

type GetBuyerResponse struct {
	Data *buyer.BuyerFrontItem `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
}

func (*GetBuyerResponse) Descriptor

func (*GetBuyerResponse) Descriptor() ([]byte, []int)

func (*GetBuyerResponse) GetData

func (m *GetBuyerResponse) GetData() *buyer.BuyerFrontItem

func (*GetBuyerResponse) ProtoMessage

func (*GetBuyerResponse) ProtoMessage()

func (*GetBuyerResponse) Reset

func (m *GetBuyerResponse) Reset()

func (*GetBuyerResponse) String

func (m *GetBuyerResponse) String() string

func (*GetBuyerResponse) Validate

func (m *GetBuyerResponse) Validate() error

Validate checks the field values on GetBuyerResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*GetBuyerResponse) XXX_DiscardUnknown

func (m *GetBuyerResponse) XXX_DiscardUnknown()

func (*GetBuyerResponse) XXX_Marshal

func (m *GetBuyerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBuyerResponse) XXX_Merge

func (m *GetBuyerResponse) XXX_Merge(src proto.Message)

func (*GetBuyerResponse) XXX_Size

func (m *GetBuyerResponse) XXX_Size() int

func (*GetBuyerResponse) XXX_Unmarshal

func (m *GetBuyerResponse) XXX_Unmarshal(b []byte) error

type GetBuyerResponseValidationError

type GetBuyerResponseValidationError struct {
	// contains filtered or unexported fields
}

GetBuyerResponseValidationError is the validation error returned by GetBuyerResponse.Validate if the designated constraints aren't met.

func (GetBuyerResponseValidationError) Cause

Cause function returns cause value.

func (GetBuyerResponseValidationError) Error

Error satisfies the builtin error interface

func (GetBuyerResponseValidationError) ErrorName

ErrorName returns error name.

func (GetBuyerResponseValidationError) Field

Field function returns field value.

func (GetBuyerResponseValidationError) Key

Key function returns key value.

func (GetBuyerResponseValidationError) Reason

Reason function returns reason value.

type PaginateBuyerRequest

type PaginateBuyerRequest 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 *shared.DefaultFilter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter"`
}

func (*PaginateBuyerRequest) Descriptor

func (*PaginateBuyerRequest) Descriptor() ([]byte, []int)

func (*PaginateBuyerRequest) GetFilter

func (m *PaginateBuyerRequest) GetFilter() *shared.DefaultFilter

func (*PaginateBuyerRequest) GetLimit

func (m *PaginateBuyerRequest) GetLimit() int64

func (*PaginateBuyerRequest) GetSkip

func (m *PaginateBuyerRequest) GetSkip() int64

func (*PaginateBuyerRequest) GetSort

func (m *PaginateBuyerRequest) GetSort() string

func (*PaginateBuyerRequest) ProtoMessage

func (*PaginateBuyerRequest) ProtoMessage()

func (*PaginateBuyerRequest) Reset

func (m *PaginateBuyerRequest) Reset()

func (*PaginateBuyerRequest) String

func (m *PaginateBuyerRequest) String() string

func (*PaginateBuyerRequest) Validate

func (m *PaginateBuyerRequest) Validate() error

Validate checks the field values on PaginateBuyerRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*PaginateBuyerRequest) XXX_DiscardUnknown

func (m *PaginateBuyerRequest) XXX_DiscardUnknown()

func (*PaginateBuyerRequest) XXX_Marshal

func (m *PaginateBuyerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PaginateBuyerRequest) XXX_Merge

func (m *PaginateBuyerRequest) XXX_Merge(src proto.Message)

func (*PaginateBuyerRequest) XXX_Size

func (m *PaginateBuyerRequest) XXX_Size() int

func (*PaginateBuyerRequest) XXX_Unmarshal

func (m *PaginateBuyerRequest) XXX_Unmarshal(b []byte) error

type PaginateBuyerRequestValidationError

type PaginateBuyerRequestValidationError struct {
	// contains filtered or unexported fields
}

PaginateBuyerRequestValidationError is the validation error returned by PaginateBuyerRequest.Validate if the designated constraints aren't met.

func (PaginateBuyerRequestValidationError) Cause

Cause function returns cause value.

func (PaginateBuyerRequestValidationError) Error

Error satisfies the builtin error interface

func (PaginateBuyerRequestValidationError) ErrorName

ErrorName returns error name.

func (PaginateBuyerRequestValidationError) Field

Field function returns field value.

func (PaginateBuyerRequestValidationError) Key

Key function returns key value.

func (PaginateBuyerRequestValidationError) Reason

Reason function returns reason value.

type PaginateBuyerResponse

type PaginateBuyerResponse 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  []*buyer.BuyerFrontItem `protobuf:"bytes,4,rep,name=data,proto3" json:"data"`
}

func (*PaginateBuyerResponse) Descriptor

func (*PaginateBuyerResponse) Descriptor() ([]byte, []int)

func (*PaginateBuyerResponse) GetData

func (m *PaginateBuyerResponse) GetData() []*buyer.BuyerFrontItem

func (*PaginateBuyerResponse) GetLimit

func (m *PaginateBuyerResponse) GetLimit() int64

func (*PaginateBuyerResponse) GetSkip

func (m *PaginateBuyerResponse) GetSkip() int64

func (*PaginateBuyerResponse) GetTotal

func (m *PaginateBuyerResponse) GetTotal() int64

func (*PaginateBuyerResponse) ProtoMessage

func (*PaginateBuyerResponse) ProtoMessage()

func (*PaginateBuyerResponse) Reset

func (m *PaginateBuyerResponse) Reset()

func (*PaginateBuyerResponse) String

func (m *PaginateBuyerResponse) String() string

func (*PaginateBuyerResponse) Validate

func (m *PaginateBuyerResponse) Validate() error

Validate checks the field values on PaginateBuyerResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*PaginateBuyerResponse) XXX_DiscardUnknown

func (m *PaginateBuyerResponse) XXX_DiscardUnknown()

func (*PaginateBuyerResponse) XXX_Marshal

func (m *PaginateBuyerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PaginateBuyerResponse) XXX_Merge

func (m *PaginateBuyerResponse) XXX_Merge(src proto.Message)

func (*PaginateBuyerResponse) XXX_Size

func (m *PaginateBuyerResponse) XXX_Size() int

func (*PaginateBuyerResponse) XXX_Unmarshal

func (m *PaginateBuyerResponse) XXX_Unmarshal(b []byte) error

type PaginateBuyerResponseValidationError

type PaginateBuyerResponseValidationError struct {
	// contains filtered or unexported fields
}

PaginateBuyerResponseValidationError is the validation error returned by PaginateBuyerResponse.Validate if the designated constraints aren't met.

func (PaginateBuyerResponseValidationError) Cause

Cause function returns cause value.

func (PaginateBuyerResponseValidationError) Error

Error satisfies the builtin error interface

func (PaginateBuyerResponseValidationError) ErrorName

ErrorName returns error name.

func (PaginateBuyerResponseValidationError) Field

Field function returns field value.

func (PaginateBuyerResponseValidationError) Key

Key function returns key value.

func (PaginateBuyerResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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