Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServiceServer(s grpc.ServiceRegistrar, srv QueryServiceServer)
- type DataPoint
- func (*DataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *DataPoint) GetId() string
- func (x *DataPoint) GetLocalHeight() string
- func (x *DataPoint) GetRemoteHeight() string
- func (x *DataPoint) GetValue() []byte
- func (*DataPoint) ProtoMessage()
- func (x *DataPoint) ProtoReflect() protoreflect.Message
- func (x *DataPoint) Reset()
- func (x *DataPoint) String() string
- type GenesisState
- type MsgClient
- type MsgServer
- type MsgSubmitQueryResponse
- func (*MsgSubmitQueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSubmitQueryResponse) GetChainId() string
- func (x *MsgSubmitQueryResponse) GetFromAddress() string
- func (x *MsgSubmitQueryResponse) GetHeight() int64
- func (x *MsgSubmitQueryResponse) GetProofOps() *crypto.ProofOps
- func (x *MsgSubmitQueryResponse) GetQueryId() string
- func (x *MsgSubmitQueryResponse) GetResult() []byte
- func (*MsgSubmitQueryResponse) ProtoMessage()
- func (x *MsgSubmitQueryResponse) ProtoReflect() protoreflect.Message
- func (x *MsgSubmitQueryResponse) Reset()
- func (x *MsgSubmitQueryResponse) String() string
- type MsgSubmitQueryResponseResponse
- func (*MsgSubmitQueryResponseResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgSubmitQueryResponseResponse) ProtoMessage()
- func (x *MsgSubmitQueryResponseResponse) ProtoReflect() protoreflect.Message
- func (x *MsgSubmitQueryResponseResponse) Reset()
- func (x *MsgSubmitQueryResponseResponse) String() string
- type Query
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetCallbackData() []byte
- func (x *Query) GetCallbackId() string
- func (x *Query) GetCallbackModule() string
- func (x *Query) GetChainId() string
- func (x *Query) GetConnectionId() string
- func (x *Query) GetId() string
- func (x *Query) GetQueryType() string
- func (x *Query) GetRequestData() []byte
- func (x *Query) GetRequestSent() bool
- func (x *Query) GetSubmissionHeight() uint64
- func (x *Query) GetTimeoutDuration() *durationpb.Duration
- func (x *Query) GetTimeoutPolicy() TimeoutPolicy
- func (x *Query) GetTimeoutTimestamp() uint64
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type QueryPendingQueriesRequest
- type QueryPendingQueriesResponse
- func (*QueryPendingQueriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPendingQueriesResponse) GetPendingQueries() []*Query
- func (*QueryPendingQueriesResponse) ProtoMessage()
- func (x *QueryPendingQueriesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryPendingQueriesResponse) Reset()
- func (x *QueryPendingQueriesResponse) String() string
- type QueryServiceClient
- type QueryServiceServer
- type TimeoutPolicy
- func (TimeoutPolicy) Descriptor() protoreflect.EnumDescriptor
- func (x TimeoutPolicy) Enum() *TimeoutPolicy
- func (TimeoutPolicy) EnumDescriptor() ([]byte, []int)deprecated
- func (x TimeoutPolicy) Number() protoreflect.EnumNumber
- func (x TimeoutPolicy) String() string
- func (TimeoutPolicy) Type() protoreflect.EnumType
- type UnimplementedMsgServer
- type UnimplementedQueryServiceServer
- type UnsafeMsgServer
- type UnsafeQueryServiceServer
Constants ¶
const (
Msg_SubmitQueryResponse_FullMethodName = "/stride.interchainquery.v1.Msg/SubmitQueryResponse"
)
const (
QueryService_PendingQueries_FullMethodName = "/stride.interchainquery.v1.QueryService/PendingQueries"
)
Variables ¶
var ( TimeoutPolicy_name = map[int32]string{ 0: "REJECT_QUERY_RESPONSE", 1: "RETRY_QUERY_REQUEST", 2: "EXECUTE_QUERY_CALLBACK", } TimeoutPolicy_value = map[string]int32{ "REJECT_QUERY_RESPONSE": 0, "RETRY_QUERY_REQUEST": 1, "EXECUTE_QUERY_CALLBACK": 2, } )
Enum value maps for TimeoutPolicy.
var File_stride_interchainquery_v1_genesis_proto protoreflect.FileDescriptor
var File_stride_interchainquery_v1_messages_proto protoreflect.FileDescriptor
var File_stride_interchainquery_v1_query_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "stride.interchainquery.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SubmitQueryResponse", Handler: _Msg_SubmitQueryResponse_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "stride/interchainquery/v1/messages.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var QueryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "stride.interchainquery.v1.QueryService", HandlerType: (*QueryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PendingQueries", Handler: _QueryService_PendingQueries_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "stride/interchainquery/v1/query.proto", }
QueryService_ServiceDesc is the grpc.ServiceDesc for QueryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServiceServer ¶
func RegisterQueryServiceServer(s grpc.ServiceRegistrar, srv QueryServiceServer)
Types ¶
type DataPoint ¶
type DataPoint struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RemoteHeight string `protobuf:"bytes,2,opt,name=remote_height,json=remoteHeight,proto3" json:"remote_height,omitempty"` LocalHeight string `protobuf:"bytes,3,opt,name=local_height,json=localHeight,proto3" json:"local_height,omitempty"` Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DataPoint) Descriptor
deprecated
func (*DataPoint) GetLocalHeight ¶
func (*DataPoint) GetRemoteHeight ¶
func (*DataPoint) ProtoMessage ¶
func (*DataPoint) ProtoMessage()
func (*DataPoint) ProtoReflect ¶
func (x *DataPoint) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct { Queries []*Query `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"` // contains filtered or unexported fields }
GenesisState defines the epochs module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetQueries ¶
func (x *GenesisState) GetQueries() []*Query
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Msg defines the interchainquery Msg service.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgServer ¶
type MsgServer interface { // SubmitQueryResponse defines a method for submit query responses. SubmitQueryResponse(context.Context, *MsgSubmitQueryResponse) (*MsgSubmitQueryResponseResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.
Msg defines the interchainquery Msg service.
type MsgSubmitQueryResponse ¶
type MsgSubmitQueryResponse struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` QueryId string `protobuf:"bytes,2,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` Result []byte `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` ProofOps *crypto.ProofOps `protobuf:"bytes,4,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty"` Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` FromAddress string `protobuf:"bytes,6,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` // contains filtered or unexported fields }
MsgSubmitQueryResponse represents a message type to fulfil a query request.
func (*MsgSubmitQueryResponse) Descriptor
deprecated
func (*MsgSubmitQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitQueryResponse.ProtoReflect.Descriptor instead.
func (*MsgSubmitQueryResponse) GetChainId ¶
func (x *MsgSubmitQueryResponse) GetChainId() string
func (*MsgSubmitQueryResponse) GetFromAddress ¶
func (x *MsgSubmitQueryResponse) GetFromAddress() string
func (*MsgSubmitQueryResponse) GetHeight ¶
func (x *MsgSubmitQueryResponse) GetHeight() int64
func (*MsgSubmitQueryResponse) GetProofOps ¶
func (x *MsgSubmitQueryResponse) GetProofOps() *crypto.ProofOps
func (*MsgSubmitQueryResponse) GetQueryId ¶
func (x *MsgSubmitQueryResponse) GetQueryId() string
func (*MsgSubmitQueryResponse) GetResult ¶
func (x *MsgSubmitQueryResponse) GetResult() []byte
func (*MsgSubmitQueryResponse) ProtoMessage ¶
func (*MsgSubmitQueryResponse) ProtoMessage()
func (*MsgSubmitQueryResponse) ProtoReflect ¶
func (x *MsgSubmitQueryResponse) ProtoReflect() protoreflect.Message
func (*MsgSubmitQueryResponse) Reset ¶
func (x *MsgSubmitQueryResponse) Reset()
func (*MsgSubmitQueryResponse) String ¶
func (x *MsgSubmitQueryResponse) String() string
type MsgSubmitQueryResponseResponse ¶
type MsgSubmitQueryResponseResponse struct {
// contains filtered or unexported fields
}
MsgSubmitQueryResponseResponse defines the MsgSubmitQueryResponse response type.
func (*MsgSubmitQueryResponseResponse) Descriptor
deprecated
func (*MsgSubmitQueryResponseResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitQueryResponseResponse.ProtoReflect.Descriptor instead.
func (*MsgSubmitQueryResponseResponse) ProtoMessage ¶
func (*MsgSubmitQueryResponseResponse) ProtoMessage()
func (*MsgSubmitQueryResponseResponse) ProtoReflect ¶
func (x *MsgSubmitQueryResponseResponse) ProtoReflect() protoreflect.Message
func (*MsgSubmitQueryResponseResponse) Reset ¶
func (x *MsgSubmitQueryResponseResponse) Reset()
func (*MsgSubmitQueryResponseResponse) String ¶
func (x *MsgSubmitQueryResponseResponse) String() string
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"` RequestData []byte `protobuf:"bytes,5,opt,name=request_data,json=requestData,proto3" json:"request_data,omitempty"` CallbackModule string `protobuf:"bytes,13,opt,name=callback_module,json=callbackModule,proto3" json:"callback_module,omitempty"` CallbackId string `protobuf:"bytes,8,opt,name=callback_id,json=callbackId,proto3" json:"callback_id,omitempty"` CallbackData []byte `protobuf:"bytes,12,opt,name=callback_data,json=callbackData,proto3" json:"callback_data,omitempty"` TimeoutPolicy TimeoutPolicy `` /* 147-byte string literal not displayed */ TimeoutDuration *durationpb.Duration `protobuf:"bytes,14,opt,name=timeout_duration,json=timeoutDuration,proto3" json:"timeout_duration,omitempty"` TimeoutTimestamp uint64 `protobuf:"varint,9,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty"` RequestSent bool `protobuf:"varint,11,opt,name=request_sent,json=requestSent,proto3" json:"request_sent,omitempty"` SubmissionHeight uint64 `protobuf:"varint,16,opt,name=submission_height,json=submissionHeight,proto3" json:"submission_height,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) GetCallbackData ¶
func (*Query) GetCallbackId ¶
func (*Query) GetCallbackModule ¶
func (*Query) GetChainId ¶
func (*Query) GetConnectionId ¶
func (*Query) GetQueryType ¶
func (*Query) GetRequestData ¶
func (*Query) GetRequestSent ¶
func (*Query) GetSubmissionHeight ¶
func (*Query) GetTimeoutDuration ¶
func (x *Query) GetTimeoutDuration() *durationpb.Duration
func (*Query) GetTimeoutPolicy ¶
func (x *Query) GetTimeoutPolicy() TimeoutPolicy
func (*Query) GetTimeoutTimestamp ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type QueryPendingQueriesRequest ¶
type QueryPendingQueriesRequest struct {
// contains filtered or unexported fields
}
func (*QueryPendingQueriesRequest) Descriptor
deprecated
func (*QueryPendingQueriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryPendingQueriesRequest.ProtoReflect.Descriptor instead.
func (*QueryPendingQueriesRequest) ProtoMessage ¶
func (*QueryPendingQueriesRequest) ProtoMessage()
func (*QueryPendingQueriesRequest) ProtoReflect ¶
func (x *QueryPendingQueriesRequest) ProtoReflect() protoreflect.Message
func (*QueryPendingQueriesRequest) Reset ¶
func (x *QueryPendingQueriesRequest) Reset()
func (*QueryPendingQueriesRequest) String ¶
func (x *QueryPendingQueriesRequest) String() string
type QueryPendingQueriesResponse ¶
type QueryPendingQueriesResponse struct { PendingQueries []*Query `protobuf:"bytes,1,rep,name=pending_queries,json=pendingQueries,proto3" json:"pending_queries,omitempty"` // contains filtered or unexported fields }
func (*QueryPendingQueriesResponse) Descriptor
deprecated
func (*QueryPendingQueriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryPendingQueriesResponse.ProtoReflect.Descriptor instead.
func (*QueryPendingQueriesResponse) GetPendingQueries ¶
func (x *QueryPendingQueriesResponse) GetPendingQueries() []*Query
func (*QueryPendingQueriesResponse) ProtoMessage ¶
func (*QueryPendingQueriesResponse) ProtoMessage()
func (*QueryPendingQueriesResponse) ProtoReflect ¶
func (x *QueryPendingQueriesResponse) ProtoReflect() protoreflect.Message
func (*QueryPendingQueriesResponse) Reset ¶
func (x *QueryPendingQueriesResponse) Reset()
func (*QueryPendingQueriesResponse) String ¶
func (x *QueryPendingQueriesResponse) String() string
type QueryServiceClient ¶
type QueryServiceClient interface {
PendingQueries(ctx context.Context, in *QueryPendingQueriesRequest, opts ...grpc.CallOption) (*QueryPendingQueriesResponse, error)
}
QueryServiceClient is the client API for QueryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryServiceClient ¶
func NewQueryServiceClient(cc grpc.ClientConnInterface) QueryServiceClient
type QueryServiceServer ¶
type QueryServiceServer interface { PendingQueries(context.Context, *QueryPendingQueriesRequest) (*QueryPendingQueriesResponse, error) // contains filtered or unexported methods }
QueryServiceServer is the server API for QueryService service. All implementations must embed UnimplementedQueryServiceServer for forward compatibility.
type TimeoutPolicy ¶
type TimeoutPolicy int32
const ( TimeoutPolicy_REJECT_QUERY_RESPONSE TimeoutPolicy = 0 TimeoutPolicy_RETRY_QUERY_REQUEST TimeoutPolicy = 1 TimeoutPolicy_EXECUTE_QUERY_CALLBACK TimeoutPolicy = 2 )
func (TimeoutPolicy) Descriptor ¶
func (TimeoutPolicy) Descriptor() protoreflect.EnumDescriptor
func (TimeoutPolicy) Enum ¶
func (x TimeoutPolicy) Enum() *TimeoutPolicy
func (TimeoutPolicy) EnumDescriptor
deprecated
func (TimeoutPolicy) EnumDescriptor() ([]byte, []int)
Deprecated: Use TimeoutPolicy.Descriptor instead.
func (TimeoutPolicy) Number ¶
func (x TimeoutPolicy) Number() protoreflect.EnumNumber
func (TimeoutPolicy) String ¶
func (x TimeoutPolicy) String() string
func (TimeoutPolicy) Type ¶
func (TimeoutPolicy) Type() protoreflect.EnumType
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMsgServer) SubmitQueryResponse ¶
func (UnimplementedMsgServer) SubmitQueryResponse(context.Context, *MsgSubmitQueryResponse) (*MsgSubmitQueryResponseResponse, error)
type UnimplementedQueryServiceServer ¶
type UnimplementedQueryServiceServer struct{}
UnimplementedQueryServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedQueryServiceServer) PendingQueries ¶
func (UnimplementedQueryServiceServer) PendingQueries(context.Context, *QueryPendingQueriesRequest) (*QueryPendingQueriesResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServiceServer ¶
type UnsafeQueryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServiceServer will result in compilation errors.