Versions in this module Expand all Collapse all v0 v0.4.0 Aug 18, 2023 Changes in this version + var ErrIntOverflowQueryRequest = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQueryResponse = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthQueryRequest = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQueryResponse = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupQueryRequest = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQueryResponse = fmt.Errorf("proto: unexpected end of group") + var Query = baseHelpers.NewQuery(name.GetPackageName(dummy{}), "", "", constants.ModuleName, requestPrototype, ...) + func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error + func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error + func RegisterQueryServer(s grpc1.Server, srv QueryServer) + type QueryClient interface + Handle func(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryRequest struct + Key *key.Key + func (*QueryRequest) Descriptor() ([]byte, []int) + func (*QueryRequest) FromCLI(cliCommand helpers.CLICommand, _ client.Context) (helpers.QueryRequest, error) + func (*QueryRequest) FromHTTPRequest(httpRequest *http.Request) (helpers.QueryRequest, error) + func (*QueryRequest) ProtoMessage() + func (m *QueryRequest) GetKey() *key.Key + func (m *QueryRequest) Marshal() (dAtA []byte, err error) + func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryRequest) Reset() + func (m *QueryRequest) Size() (n int) + func (m *QueryRequest) String() string + func (m *QueryRequest) Unmarshal(dAtA []byte) error + func (m *QueryRequest) XXX_DiscardUnknown() + func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryRequest) XXX_Merge(src proto.Message) + func (m *QueryRequest) XXX_Size() int + func (m *QueryRequest) XXX_Unmarshal(b []byte) error + func (queryRequest *QueryRequest) Decode(bytes []byte) (helpers.QueryRequest, error) + func (queryRequest *QueryRequest) Encode() ([]byte, error) + func (queryRequest *QueryRequest) Validate() error + type QueryResponse struct + Record *record.Record + func (*QueryResponse) Descriptor() ([]byte, []int) + func (*QueryResponse) ProtoMessage() + func (m *QueryResponse) Marshal() (dAtA []byte, err error) + func (m *QueryResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryResponse) Reset() + func (m *QueryResponse) Size() (n int) + func (m *QueryResponse) String() string + func (m *QueryResponse) Unmarshal(dAtA []byte) error + func (m *QueryResponse) XXX_DiscardUnknown() + func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryResponse) XXX_Merge(src proto.Message) + func (m *QueryResponse) XXX_Size() int + func (m *QueryResponse) XXX_Unmarshal(b []byte) error + func (queryResponse *QueryResponse) Decode(bytes []byte) (helpers.QueryResponse, error) + func (queryResponse *QueryResponse) Encode() ([]byte, error) + type QueryServer interface + Handle func(context.Context, *QueryRequest) (*QueryResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Handle(ctx context.Context, req *QueryRequest) (*QueryResponse, error)