rpc

package
v0.14.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 NewAncestorServiceEndpoints

func NewAncestorServiceEndpoints() []*api.Endpoint

func RegisterAncestorServiceHandler

func RegisterAncestorServiceHandler(s server.Server, hdlr AncestorServiceHandler, opts ...server.HandlerOption) error

Types

type AncestorService

type AncestorService interface {
	Paginate(ctx context.Context, in *PaginateAncestorRequest, opts ...client.CallOption) (*PaginateAncestorResponse, error)
	Get(ctx context.Context, in *GetAncestorRequest, opts ...client.CallOption) (*GetAncestorResponse, error)
}

func NewAncestorService

func NewAncestorService(name string, c client.Client) AncestorService

type GetAncestorRequest

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

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

func (*GetAncestorRequest) GetFilter

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

func (*GetAncestorRequest) GetUuid

func (m *GetAncestorRequest) GetUuid() string

func (*GetAncestorRequest) ProtoMessage

func (*GetAncestorRequest) ProtoMessage()

func (*GetAncestorRequest) Reset

func (m *GetAncestorRequest) Reset()

func (*GetAncestorRequest) String

func (m *GetAncestorRequest) String() string

func (*GetAncestorRequest) Validate

func (m *GetAncestorRequest) Validate() error

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

func (*GetAncestorRequest) XXX_DiscardUnknown

func (m *GetAncestorRequest) XXX_DiscardUnknown()

func (*GetAncestorRequest) XXX_Marshal

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

func (*GetAncestorRequest) XXX_Merge

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

func (*GetAncestorRequest) XXX_Size

func (m *GetAncestorRequest) XXX_Size() int

func (*GetAncestorRequest) XXX_Unmarshal

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

type GetAncestorRequestValidationError

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

GetAncestorRequestValidationError is the validation error returned by GetAncestorRequest.Validate if the designated constraints aren't met.

func (GetAncestorRequestValidationError) Cause

Cause function returns cause value.

func (GetAncestorRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAncestorRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAncestorRequestValidationError) Field

Field function returns field value.

func (GetAncestorRequestValidationError) Key

Key function returns key value.

func (GetAncestorRequestValidationError) Reason

Reason function returns reason value.

type GetAncestorResponse

type GetAncestorResponse struct {
	Data *ancestor.AncestorFrontItem `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
}

func (*GetAncestorResponse) Descriptor

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

func (*GetAncestorResponse) GetData

func (*GetAncestorResponse) ProtoMessage

func (*GetAncestorResponse) ProtoMessage()

func (*GetAncestorResponse) Reset

func (m *GetAncestorResponse) Reset()

func (*GetAncestorResponse) String

func (m *GetAncestorResponse) String() string

func (*GetAncestorResponse) Validate

func (m *GetAncestorResponse) Validate() error

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

func (*GetAncestorResponse) XXX_DiscardUnknown

func (m *GetAncestorResponse) XXX_DiscardUnknown()

func (*GetAncestorResponse) XXX_Marshal

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

func (*GetAncestorResponse) XXX_Merge

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

func (*GetAncestorResponse) XXX_Size

func (m *GetAncestorResponse) XXX_Size() int

func (*GetAncestorResponse) XXX_Unmarshal

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

type GetAncestorResponseValidationError

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

GetAncestorResponseValidationError is the validation error returned by GetAncestorResponse.Validate if the designated constraints aren't met.

func (GetAncestorResponseValidationError) Cause

Cause function returns cause value.

func (GetAncestorResponseValidationError) Error

Error satisfies the builtin error interface

func (GetAncestorResponseValidationError) ErrorName

ErrorName returns error name.

func (GetAncestorResponseValidationError) Field

Field function returns field value.

func (GetAncestorResponseValidationError) Key

Key function returns key value.

func (GetAncestorResponseValidationError) Reason

Reason function returns reason value.

type PaginateAncestorRequest

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

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

func (*PaginateAncestorRequest) GetFilter

func (*PaginateAncestorRequest) GetLimit

func (m *PaginateAncestorRequest) GetLimit() int64

func (*PaginateAncestorRequest) GetSkip

func (m *PaginateAncestorRequest) GetSkip() int64

func (*PaginateAncestorRequest) GetSort

func (m *PaginateAncestorRequest) GetSort() string

func (*PaginateAncestorRequest) ProtoMessage

func (*PaginateAncestorRequest) ProtoMessage()

func (*PaginateAncestorRequest) Reset

func (m *PaginateAncestorRequest) Reset()

func (*PaginateAncestorRequest) String

func (m *PaginateAncestorRequest) String() string

func (*PaginateAncestorRequest) Validate

func (m *PaginateAncestorRequest) Validate() error

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

func (*PaginateAncestorRequest) XXX_DiscardUnknown

func (m *PaginateAncestorRequest) XXX_DiscardUnknown()

func (*PaginateAncestorRequest) XXX_Marshal

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

func (*PaginateAncestorRequest) XXX_Merge

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

func (*PaginateAncestorRequest) XXX_Size

func (m *PaginateAncestorRequest) XXX_Size() int

func (*PaginateAncestorRequest) XXX_Unmarshal

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

type PaginateAncestorRequestValidationError

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

PaginateAncestorRequestValidationError is the validation error returned by PaginateAncestorRequest.Validate if the designated constraints aren't met.

func (PaginateAncestorRequestValidationError) Cause

Cause function returns cause value.

func (PaginateAncestorRequestValidationError) Error

Error satisfies the builtin error interface

func (PaginateAncestorRequestValidationError) ErrorName

ErrorName returns error name.

func (PaginateAncestorRequestValidationError) Field

Field function returns field value.

func (PaginateAncestorRequestValidationError) Key

Key function returns key value.

func (PaginateAncestorRequestValidationError) Reason

Reason function returns reason value.

type PaginateAncestorResponse

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

func (*PaginateAncestorResponse) Descriptor

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

func (*PaginateAncestorResponse) GetData

func (*PaginateAncestorResponse) GetLimit

func (m *PaginateAncestorResponse) GetLimit() int64

func (*PaginateAncestorResponse) GetSkip

func (m *PaginateAncestorResponse) GetSkip() int64

func (*PaginateAncestorResponse) GetTotal

func (m *PaginateAncestorResponse) GetTotal() int64

func (*PaginateAncestorResponse) ProtoMessage

func (*PaginateAncestorResponse) ProtoMessage()

func (*PaginateAncestorResponse) Reset

func (m *PaginateAncestorResponse) Reset()

func (*PaginateAncestorResponse) String

func (m *PaginateAncestorResponse) String() string

func (*PaginateAncestorResponse) Validate

func (m *PaginateAncestorResponse) Validate() error

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

func (*PaginateAncestorResponse) XXX_DiscardUnknown

func (m *PaginateAncestorResponse) XXX_DiscardUnknown()

func (*PaginateAncestorResponse) XXX_Marshal

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

func (*PaginateAncestorResponse) XXX_Merge

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

func (*PaginateAncestorResponse) XXX_Size

func (m *PaginateAncestorResponse) XXX_Size() int

func (*PaginateAncestorResponse) XXX_Unmarshal

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

type PaginateAncestorResponseValidationError

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

PaginateAncestorResponseValidationError is the validation error returned by PaginateAncestorResponse.Validate if the designated constraints aren't met.

func (PaginateAncestorResponseValidationError) Cause

Cause function returns cause value.

func (PaginateAncestorResponseValidationError) Error

Error satisfies the builtin error interface

func (PaginateAncestorResponseValidationError) ErrorName

ErrorName returns error name.

func (PaginateAncestorResponseValidationError) Field

Field function returns field value.

func (PaginateAncestorResponseValidationError) Key

Key function returns key value.

func (PaginateAncestorResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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