types

package
v2.0.0-...-3c1199b Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AttributeKeyQueryID      = "query_id"
	AttributeKeyChainID      = "chain_id"
	AttributeKeyConnectionID = "connection_id"
	AttributeKeyType         = "type"
	AttributeKeyParams       = "parameters"
	AttributeKeyRequest      = "request"
	AttributeKeyHeight       = "height"

	AttributeValueCategory = ModuleName
	AttributeValueQuery    = "query"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "interchainquery"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgSubmitQueryResponse = "submitqueryresponse"
)

interchainquery message types

Variables

View Source
var (
	ErrAlreadyFulfilled  = errors.New("query already fulfilled")
	ErrSucceededNoDelete = errors.New("query succeeded; do not not execute default behavior")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyPrefixData  = []byte{prefixData}
	KeyPrefixQuery = []byte{prefixQuery}
)
View Source
var (
	ErrInvalidLengthMessages        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessages          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgHandler

func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMsgHandlerClient

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.

func RegisterMsgHandlerFromEndpoint

func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMsgHandlerServer

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMsgHandlerFromEndpoint instead.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQuerySrvrHandler

func RegisterQuerySrvrHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQuerySrvrHandler registers the http handlers for service QuerySrvr to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQuerySrvrHandlerClient

func RegisterQuerySrvrHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QuerySrvrClient) error

RegisterQuerySrvrHandlerClient registers the http handlers for service QuerySrvr to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QuerySrvrClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QuerySrvrClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QuerySrvrClient" to call the correct interceptors.

func RegisterQuerySrvrHandlerFromEndpoint

func RegisterQuerySrvrHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQuerySrvrHandlerFromEndpoint is same as RegisterQuerySrvrHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQuerySrvrHandlerServer

func RegisterQuerySrvrHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QuerySrvrServer) error

RegisterQuerySrvrHandlerServer registers the http handlers for service QuerySrvr to "mux". UnaryRPC :call QuerySrvrServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQuerySrvrHandlerFromEndpoint instead.

func RegisterQuerySrvrServer

func RegisterQuerySrvrServer(s grpc1.Server, srv QuerySrvrServer)

Types

type DataPoint

type DataPoint struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// change these to uint64 in v0.5.0
	RemoteHeight github_com_cosmos_cosmos_sdk_types.Int `` /* 137-byte string literal not displayed */
	LocalHeight  github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	Value        []byte                                 `protobuf:"bytes,4,opt,name=value,proto3" json:"result,omitempty"`
}

func (*DataPoint) Descriptor

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

func (*DataPoint) GetId

func (m *DataPoint) GetId() string

func (*DataPoint) GetValue

func (m *DataPoint) GetValue() []byte

func (*DataPoint) Marshal

func (m *DataPoint) Marshal() (dAtA []byte, err error)

func (*DataPoint) MarshalTo

func (m *DataPoint) MarshalTo(dAtA []byte) (int, error)

func (*DataPoint) MarshalToSizedBuffer

func (m *DataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DataPoint) ProtoMessage

func (*DataPoint) ProtoMessage()

func (*DataPoint) Reset

func (m *DataPoint) Reset()

func (*DataPoint) Size

func (m *DataPoint) Size() (n int)

func (*DataPoint) String

func (m *DataPoint) String() string

func (*DataPoint) Unmarshal

func (m *DataPoint) Unmarshal(dAtA []byte) error

func (*DataPoint) XXX_DiscardUnknown

func (m *DataPoint) XXX_DiscardUnknown()

func (*DataPoint) XXX_Marshal

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

func (*DataPoint) XXX_Merge

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

func (*DataPoint) XXX_Size

func (m *DataPoint) XXX_Size() int

func (*DataPoint) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Queries []Query `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries"`
}

GenesisState defines the epochs module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func NewGenesisState

func NewGenesisState(queries []Query) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetQueries

func (m *GenesisState) GetQueries() []Query

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type GetTxWithProofResponse

type GetTxWithProofResponse struct {
	// tx is the queried transaction.
	Tx *tx.Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	// tx_response is the queried TxResponses.
	TxResponse *types.TxResponse `protobuf:"bytes,2,opt,name=tx_response,json=txResponse,proto3" json:"tx_response,omitempty"`
	// proof is the tmproto.TxProof for the queried tx
	Proof *types1.TxProof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
	// ibc-go header to validate txs
	Header *types2.Header `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"`
}

GetTxResponse is the response type for the Service.GetTx method.

func (*GetTxWithProofResponse) Descriptor

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

func (*GetTxWithProofResponse) GetHeader

func (m *GetTxWithProofResponse) GetHeader() *types2.Header

func (*GetTxWithProofResponse) GetProof

func (m *GetTxWithProofResponse) GetProof() *types1.TxProof

func (*GetTxWithProofResponse) GetTx

func (m *GetTxWithProofResponse) GetTx() *tx.Tx

func (*GetTxWithProofResponse) GetTxResponse

func (m *GetTxWithProofResponse) GetTxResponse() *types.TxResponse

func (*GetTxWithProofResponse) Marshal

func (m *GetTxWithProofResponse) Marshal() (dAtA []byte, err error)

func (*GetTxWithProofResponse) MarshalTo

func (m *GetTxWithProofResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetTxWithProofResponse) MarshalToSizedBuffer

func (m *GetTxWithProofResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetTxWithProofResponse) ProtoMessage

func (*GetTxWithProofResponse) ProtoMessage()

func (*GetTxWithProofResponse) Reset

func (m *GetTxWithProofResponse) Reset()

func (*GetTxWithProofResponse) Size

func (m *GetTxWithProofResponse) Size() (n int)

func (*GetTxWithProofResponse) String

func (m *GetTxWithProofResponse) String() string

func (*GetTxWithProofResponse) Unmarshal

func (m *GetTxWithProofResponse) Unmarshal(dAtA []byte) error

func (*GetTxWithProofResponse) XXX_DiscardUnknown

func (m *GetTxWithProofResponse) XXX_DiscardUnknown()

func (*GetTxWithProofResponse) XXX_Marshal

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

func (*GetTxWithProofResponse) XXX_Merge

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

func (*GetTxWithProofResponse) XXX_Size

func (m *GetTxWithProofResponse) XXX_Size() int

func (*GetTxWithProofResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// SubmitQueryResponse defines a method for submit query responses.
	SubmitQueryResponse(ctx context.Context, in *MsgSubmitQueryResponse, opts ...grpc.CallOption) (*MsgSubmitQueryResponseResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	// SubmitQueryResponse defines a method for submit query responses.
	SubmitQueryResponse(context.Context, *MsgSubmitQueryResponse) (*MsgSubmitQueryResponseResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSubmitQueryResponse

type MsgSubmitQueryResponse struct {
	ChainId     string           `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	QueryId     string           `protobuf:"bytes,2,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty" yaml:"query_id"`
	Result      []byte           `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty" yaml:"result"`
	ProofOps    *crypto.ProofOps `protobuf:"bytes,4,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty" yaml:"proof_ops"`
	Height      int64            `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty" yaml:"height"`
	FromAddress string           `protobuf:"bytes,6,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"`
}

MsgSubmitQueryResponse represents a message type to fulfil a query request.

func (*MsgSubmitQueryResponse) Descriptor

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

func (MsgSubmitQueryResponse) GetSignBytes

func (msg MsgSubmitQueryResponse) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgSubmitQueryResponse) GetSigners

func (msg MsgSubmitQueryResponse) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgSubmitQueryResponse) Marshal

func (m *MsgSubmitQueryResponse) Marshal() (dAtA []byte, err error)

func (*MsgSubmitQueryResponse) MarshalTo

func (m *MsgSubmitQueryResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSubmitQueryResponse) MarshalToSizedBuffer

func (m *MsgSubmitQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSubmitQueryResponse) ProtoMessage

func (*MsgSubmitQueryResponse) ProtoMessage()

func (*MsgSubmitQueryResponse) Reset

func (m *MsgSubmitQueryResponse) Reset()

func (MsgSubmitQueryResponse) Route

func (msg MsgSubmitQueryResponse) Route() string

Route Implements Msg.

func (*MsgSubmitQueryResponse) Size

func (m *MsgSubmitQueryResponse) Size() (n int)

func (*MsgSubmitQueryResponse) String

func (m *MsgSubmitQueryResponse) String() string

func (MsgSubmitQueryResponse) Type

func (msg MsgSubmitQueryResponse) Type() string

Type Implements Msg.

func (*MsgSubmitQueryResponse) Unmarshal

func (m *MsgSubmitQueryResponse) Unmarshal(dAtA []byte) error

func (MsgSubmitQueryResponse) ValidateBasic

func (msg MsgSubmitQueryResponse) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgSubmitQueryResponse) XXX_DiscardUnknown

func (m *MsgSubmitQueryResponse) XXX_DiscardUnknown()

func (*MsgSubmitQueryResponse) XXX_Marshal

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

func (*MsgSubmitQueryResponse) XXX_Merge

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

func (*MsgSubmitQueryResponse) XXX_Size

func (m *MsgSubmitQueryResponse) XXX_Size() int

func (*MsgSubmitQueryResponse) XXX_Unmarshal

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

type MsgSubmitQueryResponseResponse

type MsgSubmitQueryResponseResponse struct {
}

MsgSubmitQueryResponseResponse defines the MsgSubmitQueryResponse response type.

func (*MsgSubmitQueryResponseResponse) Descriptor

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

func (*MsgSubmitQueryResponseResponse) Marshal

func (m *MsgSubmitQueryResponseResponse) Marshal() (dAtA []byte, err error)

func (*MsgSubmitQueryResponseResponse) MarshalTo

func (m *MsgSubmitQueryResponseResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSubmitQueryResponseResponse) MarshalToSizedBuffer

func (m *MsgSubmitQueryResponseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSubmitQueryResponseResponse) ProtoMessage

func (*MsgSubmitQueryResponseResponse) ProtoMessage()

func (*MsgSubmitQueryResponseResponse) Reset

func (m *MsgSubmitQueryResponseResponse) Reset()

func (*MsgSubmitQueryResponseResponse) Size

func (m *MsgSubmitQueryResponseResponse) Size() (n int)

func (*MsgSubmitQueryResponseResponse) String

func (*MsgSubmitQueryResponseResponse) Unmarshal

func (m *MsgSubmitQueryResponseResponse) Unmarshal(dAtA []byte) error

func (*MsgSubmitQueryResponseResponse) XXX_DiscardUnknown

func (m *MsgSubmitQueryResponseResponse) XXX_DiscardUnknown()

func (*MsgSubmitQueryResponseResponse) XXX_Marshal

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

func (*MsgSubmitQueryResponseResponse) XXX_Merge

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

func (*MsgSubmitQueryResponseResponse) XXX_Size

func (m *MsgSubmitQueryResponseResponse) XXX_Size() int

func (*MsgSubmitQueryResponseResponse) XXX_Unmarshal

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

type Query

type Query struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	ChainId      string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	QueryType    string `protobuf:"bytes,4,opt,name=query_type,json=queryType,proto3" json:"query_type,omitempty"`
	Request      []byte `protobuf:"bytes,5,opt,name=request,proto3" json:"request,omitempty"`
	// change these to uint64 in v0.5.0
	Period       github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=period,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"period"`
	LastHeight   github_com_cosmos_cosmos_sdk_types.Int `` /* 131-byte string literal not displayed */
	CallbackId   string                                 `protobuf:"bytes,8,opt,name=callback_id,json=callbackId,proto3" json:"callback_id,omitempty"`
	Ttl          uint64                                 `protobuf:"varint,9,opt,name=ttl,proto3" json:"ttl,omitempty"`
	LastEmission github_com_cosmos_cosmos_sdk_types.Int `` /* 138-byte string literal not displayed */
}

func (*Query) Descriptor

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

func (*Query) GetCallbackId

func (m *Query) GetCallbackId() string

func (*Query) GetChainId

func (m *Query) GetChainId() string

func (*Query) GetConnectionId

func (m *Query) GetConnectionId() string

func (*Query) GetId

func (m *Query) GetId() string

func (*Query) GetQueryType

func (m *Query) GetQueryType() string

func (*Query) GetRequest

func (m *Query) GetRequest() []byte

func (*Query) GetTtl

func (m *Query) GetTtl() uint64

func (*Query) Marshal

func (m *Query) Marshal() (dAtA []byte, err error)

func (*Query) MarshalTo

func (m *Query) MarshalTo(dAtA []byte) (int, error)

func (*Query) MarshalToSizedBuffer

func (m *Query) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) Reset

func (m *Query) Reset()

func (*Query) Size

func (m *Query) Size() (n int)

func (*Query) String

func (m *Query) String() string

func (*Query) Unmarshal

func (m *Query) Unmarshal(dAtA []byte) error

func (*Query) XXX_DiscardUnknown

func (m *Query) XXX_DiscardUnknown()

func (*Query) XXX_Marshal

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

func (*Query) XXX_Merge

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

func (*Query) XXX_Size

func (m *Query) XXX_Size() int

func (*Query) XXX_Unmarshal

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

type QueryCallbacks

type QueryCallbacks interface {
	AddCallback(id string, fn interface{}) QueryCallbacks
	RegisterCallbacks() QueryCallbacks
	Call(ctx sdk.Context, id string, args []byte, query Query) error
	Has(id string) bool
}

type QueryRequestsRequest

type QueryRequestsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	ChainId    string             `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryRequestsRequest) Descriptor

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

func (*QueryRequestsRequest) GetChainId

func (m *QueryRequestsRequest) GetChainId() string

func (*QueryRequestsRequest) GetPagination

func (m *QueryRequestsRequest) GetPagination() *query.PageRequest

func (*QueryRequestsRequest) Marshal

func (m *QueryRequestsRequest) Marshal() (dAtA []byte, err error)

func (*QueryRequestsRequest) MarshalTo

func (m *QueryRequestsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryRequestsRequest) MarshalToSizedBuffer

func (m *QueryRequestsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRequestsRequest) ProtoMessage

func (*QueryRequestsRequest) ProtoMessage()

func (*QueryRequestsRequest) Reset

func (m *QueryRequestsRequest) Reset()

func (*QueryRequestsRequest) Size

func (m *QueryRequestsRequest) Size() (n int)

func (*QueryRequestsRequest) String

func (m *QueryRequestsRequest) String() string

func (*QueryRequestsRequest) Unmarshal

func (m *QueryRequestsRequest) Unmarshal(dAtA []byte) error

func (*QueryRequestsRequest) XXX_DiscardUnknown

func (m *QueryRequestsRequest) XXX_DiscardUnknown()

func (*QueryRequestsRequest) XXX_Marshal

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

func (*QueryRequestsRequest) XXX_Merge

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

func (*QueryRequestsRequest) XXX_Size

func (m *QueryRequestsRequest) XXX_Size() int

func (*QueryRequestsRequest) XXX_Unmarshal

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

type QueryRequestsResponse

type QueryRequestsResponse struct {
	// params defines the parameters of the module.
	Queries    []Query             `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryRequestsResponse) Descriptor

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

func (*QueryRequestsResponse) GetPagination

func (m *QueryRequestsResponse) GetPagination() *query.PageResponse

func (*QueryRequestsResponse) GetQueries

func (m *QueryRequestsResponse) GetQueries() []Query

func (*QueryRequestsResponse) Marshal

func (m *QueryRequestsResponse) Marshal() (dAtA []byte, err error)

func (*QueryRequestsResponse) MarshalTo

func (m *QueryRequestsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryRequestsResponse) MarshalToSizedBuffer

func (m *QueryRequestsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRequestsResponse) ProtoMessage

func (*QueryRequestsResponse) ProtoMessage()

func (*QueryRequestsResponse) Reset

func (m *QueryRequestsResponse) Reset()

func (*QueryRequestsResponse) Size

func (m *QueryRequestsResponse) Size() (n int)

func (*QueryRequestsResponse) String

func (m *QueryRequestsResponse) String() string

func (*QueryRequestsResponse) Unmarshal

func (m *QueryRequestsResponse) Unmarshal(dAtA []byte) error

func (*QueryRequestsResponse) XXX_DiscardUnknown

func (m *QueryRequestsResponse) XXX_DiscardUnknown()

func (*QueryRequestsResponse) XXX_Marshal

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

func (*QueryRequestsResponse) XXX_Merge

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

func (*QueryRequestsResponse) XXX_Size

func (m *QueryRequestsResponse) XXX_Size() int

func (*QueryRequestsResponse) XXX_Unmarshal

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

type QuerySrvrClient

type QuerySrvrClient interface {
	// Params returns the total set of minting parameters.
	Queries(ctx context.Context, in *QueryRequestsRequest, opts ...grpc.CallOption) (*QueryRequestsResponse, error)
}

QuerySrvrClient is the client API for QuerySrvr service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQuerySrvrClient

func NewQuerySrvrClient(cc grpc1.ClientConn) QuerySrvrClient

type QuerySrvrServer

type QuerySrvrServer interface {
	// Params returns the total set of minting parameters.
	Queries(context.Context, *QueryRequestsRequest) (*QueryRequestsResponse, error)
}

QuerySrvrServer is the server API for QuerySrvr service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) SubmitQueryResponse

type UnimplementedQuerySrvrServer

type UnimplementedQuerySrvrServer struct {
}

UnimplementedQuerySrvrServer can be embedded to have forward compatible implementations.

func (*UnimplementedQuerySrvrServer) Queries

Jump to

Keyboard shortcuts

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