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 NewAttributeServiceEndpoints

func NewAttributeServiceEndpoints() []*api.Endpoint

func RegisterAttributeServiceHandler

func RegisterAttributeServiceHandler(s server.Server, hdlr AttributeServiceHandler, opts ...server.HandlerOption) error

Types

type AttributeService

type AttributeService interface {
	Paginate(ctx context.Context, in *PaginateAttributeRequest, opts ...client.CallOption) (*PaginateAttributeResponse, error)
	Get(ctx context.Context, in *GetAttributeRequest, opts ...client.CallOption) (*GetAttributeResponse, error)
}

func NewAttributeService

func NewAttributeService(name string, c client.Client) AttributeService

type GetAttributeRequest

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

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

func (*GetAttributeRequest) GetFilter

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

func (*GetAttributeRequest) GetUuid

func (m *GetAttributeRequest) GetUuid() string

func (*GetAttributeRequest) ProtoMessage

func (*GetAttributeRequest) ProtoMessage()

func (*GetAttributeRequest) Reset

func (m *GetAttributeRequest) Reset()

func (*GetAttributeRequest) String

func (m *GetAttributeRequest) String() string

func (*GetAttributeRequest) Validate

func (m *GetAttributeRequest) Validate() error

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

func (*GetAttributeRequest) XXX_DiscardUnknown

func (m *GetAttributeRequest) XXX_DiscardUnknown()

func (*GetAttributeRequest) XXX_Marshal

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

func (*GetAttributeRequest) XXX_Merge

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

func (*GetAttributeRequest) XXX_Size

func (m *GetAttributeRequest) XXX_Size() int

func (*GetAttributeRequest) XXX_Unmarshal

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

type GetAttributeRequestValidationError

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

GetAttributeRequestValidationError is the validation error returned by GetAttributeRequest.Validate if the designated constraints aren't met.

func (GetAttributeRequestValidationError) Cause

Cause function returns cause value.

func (GetAttributeRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAttributeRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAttributeRequestValidationError) Field

Field function returns field value.

func (GetAttributeRequestValidationError) Key

Key function returns key value.

func (GetAttributeRequestValidationError) Reason

Reason function returns reason value.

type GetAttributeResponse

type GetAttributeResponse struct {
	Data *attribute.AttributeFrontItem `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
}

func (*GetAttributeResponse) Descriptor

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

func (*GetAttributeResponse) GetData

func (*GetAttributeResponse) ProtoMessage

func (*GetAttributeResponse) ProtoMessage()

func (*GetAttributeResponse) Reset

func (m *GetAttributeResponse) Reset()

func (*GetAttributeResponse) String

func (m *GetAttributeResponse) String() string

func (*GetAttributeResponse) Validate

func (m *GetAttributeResponse) Validate() error

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

func (*GetAttributeResponse) XXX_DiscardUnknown

func (m *GetAttributeResponse) XXX_DiscardUnknown()

func (*GetAttributeResponse) XXX_Marshal

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

func (*GetAttributeResponse) XXX_Merge

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

func (*GetAttributeResponse) XXX_Size

func (m *GetAttributeResponse) XXX_Size() int

func (*GetAttributeResponse) XXX_Unmarshal

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

type GetAttributeResponseValidationError

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

GetAttributeResponseValidationError is the validation error returned by GetAttributeResponse.Validate if the designated constraints aren't met.

func (GetAttributeResponseValidationError) Cause

Cause function returns cause value.

func (GetAttributeResponseValidationError) Error

Error satisfies the builtin error interface

func (GetAttributeResponseValidationError) ErrorName

ErrorName returns error name.

func (GetAttributeResponseValidationError) Field

Field function returns field value.

func (GetAttributeResponseValidationError) Key

Key function returns key value.

func (GetAttributeResponseValidationError) Reason

Reason function returns reason value.

type PaginateAttributeRequest

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

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

func (*PaginateAttributeRequest) GetFilter

func (*PaginateAttributeRequest) GetLimit

func (m *PaginateAttributeRequest) GetLimit() int64

func (*PaginateAttributeRequest) GetSkip

func (m *PaginateAttributeRequest) GetSkip() int64

func (*PaginateAttributeRequest) GetSort

func (m *PaginateAttributeRequest) GetSort() string

func (*PaginateAttributeRequest) ProtoMessage

func (*PaginateAttributeRequest) ProtoMessage()

func (*PaginateAttributeRequest) Reset

func (m *PaginateAttributeRequest) Reset()

func (*PaginateAttributeRequest) String

func (m *PaginateAttributeRequest) String() string

func (*PaginateAttributeRequest) Validate

func (m *PaginateAttributeRequest) Validate() error

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

func (*PaginateAttributeRequest) XXX_DiscardUnknown

func (m *PaginateAttributeRequest) XXX_DiscardUnknown()

func (*PaginateAttributeRequest) XXX_Marshal

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

func (*PaginateAttributeRequest) XXX_Merge

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

func (*PaginateAttributeRequest) XXX_Size

func (m *PaginateAttributeRequest) XXX_Size() int

func (*PaginateAttributeRequest) XXX_Unmarshal

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

type PaginateAttributeRequestValidationError

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

PaginateAttributeRequestValidationError is the validation error returned by PaginateAttributeRequest.Validate if the designated constraints aren't met.

func (PaginateAttributeRequestValidationError) Cause

Cause function returns cause value.

func (PaginateAttributeRequestValidationError) Error

Error satisfies the builtin error interface

func (PaginateAttributeRequestValidationError) ErrorName

ErrorName returns error name.

func (PaginateAttributeRequestValidationError) Field

Field function returns field value.

func (PaginateAttributeRequestValidationError) Key

Key function returns key value.

func (PaginateAttributeRequestValidationError) Reason

Reason function returns reason value.

type PaginateAttributeResponse

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

func (*PaginateAttributeResponse) Descriptor

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

func (*PaginateAttributeResponse) GetData

func (*PaginateAttributeResponse) GetLimit

func (m *PaginateAttributeResponse) GetLimit() int64

func (*PaginateAttributeResponse) GetSkip

func (m *PaginateAttributeResponse) GetSkip() int64

func (*PaginateAttributeResponse) GetTotal

func (m *PaginateAttributeResponse) GetTotal() int64

func (*PaginateAttributeResponse) ProtoMessage

func (*PaginateAttributeResponse) ProtoMessage()

func (*PaginateAttributeResponse) Reset

func (m *PaginateAttributeResponse) Reset()

func (*PaginateAttributeResponse) String

func (m *PaginateAttributeResponse) String() string

func (*PaginateAttributeResponse) Validate

func (m *PaginateAttributeResponse) Validate() error

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

func (*PaginateAttributeResponse) XXX_DiscardUnknown

func (m *PaginateAttributeResponse) XXX_DiscardUnknown()

func (*PaginateAttributeResponse) XXX_Marshal

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

func (*PaginateAttributeResponse) XXX_Merge

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

func (*PaginateAttributeResponse) XXX_Size

func (m *PaginateAttributeResponse) XXX_Size() int

func (*PaginateAttributeResponse) XXX_Unmarshal

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

type PaginateAttributeResponseValidationError

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

PaginateAttributeResponseValidationError is the validation error returned by PaginateAttributeResponse.Validate if the designated constraints aren't met.

func (PaginateAttributeResponseValidationError) Cause

Cause function returns cause value.

func (PaginateAttributeResponseValidationError) Error

Error satisfies the builtin error interface

func (PaginateAttributeResponseValidationError) ErrorName

ErrorName returns error name.

func (PaginateAttributeResponseValidationError) Field

Field function returns field value.

func (PaginateAttributeResponseValidationError) Key

Key function returns key value.

func (PaginateAttributeResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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