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.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Feed
- func (*Feed) Descriptor() ([]byte, []int)deprecated
- func (x *Feed) GetAggregateFunc() string
- func (x *Feed) GetCreator() string
- func (x *Feed) GetDescription() string
- func (x *Feed) GetFeedName() string
- func (x *Feed) GetLatestHistory() uint64
- func (x *Feed) GetRequestContextId() string
- func (x *Feed) GetValueJsonPath() string
- func (*Feed) ProtoMessage()
- func (x *Feed) ProtoReflect() protoreflect.Message
- func (x *Feed) Reset()
- func (x *Feed) String() string
- type FeedContext
- func (*FeedContext) Descriptor() ([]byte, []int)deprecated
- func (x *FeedContext) GetFeed() *Feed
- func (x *FeedContext) GetInput() string
- func (x *FeedContext) GetProviders() []string
- func (x *FeedContext) GetRepeatedFrequency() uint64
- func (x *FeedContext) GetResponseThreshold() uint32
- func (x *FeedContext) GetServiceFeeCap() []*v1beta11.Coin
- func (x *FeedContext) GetServiceName() string
- func (x *FeedContext) GetState() service.RequestContextState
- func (x *FeedContext) GetTimeout() int64
- func (*FeedContext) ProtoMessage()
- func (x *FeedContext) ProtoReflect() protoreflect.Message
- func (x *FeedContext) Reset()
- func (x *FeedContext) String() string
- type FeedEntry
- func (*FeedEntry) Descriptor() ([]byte, []int)deprecated
- func (x *FeedEntry) GetFeed() *Feed
- func (x *FeedEntry) GetState() service.RequestContextState
- func (x *FeedEntry) GetValues() []*FeedValue
- func (*FeedEntry) ProtoMessage()
- func (x *FeedEntry) ProtoReflect() protoreflect.Message
- func (x *FeedEntry) Reset()
- func (x *FeedEntry) String() string
- type FeedValue
- func (*FeedValue) Descriptor() ([]byte, []int)deprecated
- func (x *FeedValue) GetData() string
- func (x *FeedValue) GetTimestamp() *timestamppb.Timestamp
- func (*FeedValue) ProtoMessage()
- func (x *FeedValue) ProtoReflect() protoreflect.Message
- func (x *FeedValue) Reset()
- func (x *FeedValue) String() string
- type GenesisState
- type MsgClient
- type MsgCreateFeed
- func (*MsgCreateFeed) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateFeed) GetAggregateFunc() string
- func (x *MsgCreateFeed) GetCreator() string
- func (x *MsgCreateFeed) GetDescription() string
- func (x *MsgCreateFeed) GetFeedName() string
- func (x *MsgCreateFeed) GetInput() string
- func (x *MsgCreateFeed) GetLatestHistory() uint64
- func (x *MsgCreateFeed) GetProviders() []string
- func (x *MsgCreateFeed) GetRepeatedFrequency() uint64
- func (x *MsgCreateFeed) GetResponseThreshold() uint32
- func (x *MsgCreateFeed) GetServiceFeeCap() []*v1beta1.Coin
- func (x *MsgCreateFeed) GetServiceName() string
- func (x *MsgCreateFeed) GetTimeout() int64
- func (x *MsgCreateFeed) GetValueJsonPath() string
- func (*MsgCreateFeed) ProtoMessage()
- func (x *MsgCreateFeed) ProtoReflect() protoreflect.Message
- func (x *MsgCreateFeed) Reset()
- func (x *MsgCreateFeed) String() string
- type MsgCreateFeedResponse
- type MsgEditFeed
- func (*MsgEditFeed) Descriptor() ([]byte, []int)deprecated
- func (x *MsgEditFeed) GetCreator() string
- func (x *MsgEditFeed) GetDescription() string
- func (x *MsgEditFeed) GetFeedName() string
- func (x *MsgEditFeed) GetLatestHistory() uint64
- func (x *MsgEditFeed) GetProviders() []string
- func (x *MsgEditFeed) GetRepeatedFrequency() uint64
- func (x *MsgEditFeed) GetResponseThreshold() uint32
- func (x *MsgEditFeed) GetServiceFeeCap() []*v1beta1.Coin
- func (x *MsgEditFeed) GetTimeout() int64
- func (*MsgEditFeed) ProtoMessage()
- func (x *MsgEditFeed) ProtoReflect() protoreflect.Message
- func (x *MsgEditFeed) Reset()
- func (x *MsgEditFeed) String() string
- type MsgEditFeedResponse
- type MsgPauseFeed
- func (*MsgPauseFeed) Descriptor() ([]byte, []int)deprecated
- func (x *MsgPauseFeed) GetCreator() string
- func (x *MsgPauseFeed) GetFeedName() string
- func (*MsgPauseFeed) ProtoMessage()
- func (x *MsgPauseFeed) ProtoReflect() protoreflect.Message
- func (x *MsgPauseFeed) Reset()
- func (x *MsgPauseFeed) String() string
- type MsgPauseFeedResponse
- type MsgServer
- type MsgStartFeed
- func (*MsgStartFeed) Descriptor() ([]byte, []int)deprecated
- func (x *MsgStartFeed) GetCreator() string
- func (x *MsgStartFeed) GetFeedName() string
- func (*MsgStartFeed) ProtoMessage()
- func (x *MsgStartFeed) ProtoReflect() protoreflect.Message
- func (x *MsgStartFeed) Reset()
- func (x *MsgStartFeed) String() string
- type MsgStartFeedResponse
- type QueryClient
- type QueryFeedRequest
- type QueryFeedResponse
- func (*QueryFeedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFeedResponse) GetFeed() *FeedContext
- func (*QueryFeedResponse) ProtoMessage()
- func (x *QueryFeedResponse) ProtoReflect() protoreflect.Message
- func (x *QueryFeedResponse) Reset()
- func (x *QueryFeedResponse) String() string
- type QueryFeedValueRequest
- func (*QueryFeedValueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFeedValueRequest) GetFeedName() string
- func (*QueryFeedValueRequest) ProtoMessage()
- func (x *QueryFeedValueRequest) ProtoReflect() protoreflect.Message
- func (x *QueryFeedValueRequest) Reset()
- func (x *QueryFeedValueRequest) String() string
- type QueryFeedValueResponse
- func (*QueryFeedValueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFeedValueResponse) GetFeedValues() []*FeedValue
- func (*QueryFeedValueResponse) ProtoMessage()
- func (x *QueryFeedValueResponse) ProtoReflect() protoreflect.Message
- func (x *QueryFeedValueResponse) Reset()
- func (x *QueryFeedValueResponse) String() string
- type QueryFeedsRequest
- func (*QueryFeedsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFeedsRequest) GetPagination() *v1beta1.PageRequest
- func (x *QueryFeedsRequest) GetState() string
- func (*QueryFeedsRequest) ProtoMessage()
- func (x *QueryFeedsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryFeedsRequest) Reset()
- func (x *QueryFeedsRequest) String() string
- type QueryFeedsResponse
- func (*QueryFeedsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFeedsResponse) GetFeeds() []*FeedContext
- func (x *QueryFeedsResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryFeedsResponse) ProtoMessage()
- func (x *QueryFeedsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryFeedsResponse) Reset()
- func (x *QueryFeedsResponse) String() string
- type QueryServer
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) CreateFeed(context.Context, *MsgCreateFeed) (*MsgCreateFeedResponse, error)
- func (UnimplementedMsgServer) EditFeed(context.Context, *MsgEditFeed) (*MsgEditFeedResponse, error)
- func (UnimplementedMsgServer) PauseFeed(context.Context, *MsgPauseFeed) (*MsgPauseFeedResponse, error)
- func (UnimplementedMsgServer) StartFeed(context.Context, *MsgStartFeed) (*MsgStartFeedResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Feed(context.Context, *QueryFeedRequest) (*QueryFeedResponse, error)
- func (UnimplementedQueryServer) FeedValue(context.Context, *QueryFeedValueRequest) (*QueryFeedValueResponse, error)
- func (UnimplementedQueryServer) Feeds(context.Context, *QueryFeedsRequest) (*QueryFeedsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Feed_FullMethodName = "/irismod.oracle.Query/Feed" Query_Feeds_FullMethodName = "/irismod.oracle.Query/Feeds" Query_FeedValue_FullMethodName = "/irismod.oracle.Query/FeedValue" )
const ( Msg_CreateFeed_FullMethodName = "/irismod.oracle.Msg/CreateFeed" Msg_EditFeed_FullMethodName = "/irismod.oracle.Msg/EditFeed" Msg_StartFeed_FullMethodName = "/irismod.oracle.Msg/StartFeed" Msg_PauseFeed_FullMethodName = "/irismod.oracle.Msg/PauseFeed" )
Variables ¶
var File_irismod_oracle_genesis_proto protoreflect.FileDescriptor
var File_irismod_oracle_oracle_proto protoreflect.FileDescriptor
var File_irismod_oracle_query_proto protoreflect.FileDescriptor
var File_irismod_oracle_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "irismod.oracle.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateFeed", Handler: _Msg_CreateFeed_Handler, }, { MethodName: "EditFeed", Handler: _Msg_EditFeed_Handler, }, { MethodName: "StartFeed", Handler: _Msg_StartFeed_Handler, }, { MethodName: "PauseFeed", Handler: _Msg_PauseFeed_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "irismod/oracle/tx.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 Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "irismod.oracle.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Feed", Handler: _Query_Feed_Handler, }, { MethodName: "Feeds", Handler: _Query_Feeds_Handler, }, { MethodName: "FeedValue", Handler: _Query_FeedValue_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "irismod/oracle/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query 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 RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type Feed ¶
type Feed struct { FeedName string `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` AggregateFunc string `protobuf:"bytes,3,opt,name=aggregate_func,json=aggregateFunc,proto3" json:"aggregate_func,omitempty"` ValueJsonPath string `protobuf:"bytes,4,opt,name=value_json_path,json=valueJsonPath,proto3" json:"value_json_path,omitempty"` LatestHistory uint64 `protobuf:"varint,5,opt,name=latest_history,json=latestHistory,proto3" json:"latest_history,omitempty"` RequestContextId string `protobuf:"bytes,6,opt,name=request_context_id,json=requestContextId,proto3" json:"request_context_id,omitempty"` Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"` // contains filtered or unexported fields }
Feed defines the feed standard
func (*Feed) Descriptor
deprecated
func (*Feed) GetAggregateFunc ¶
func (*Feed) GetCreator ¶
func (*Feed) GetDescription ¶
func (*Feed) GetFeedName ¶
func (*Feed) GetLatestHistory ¶
func (*Feed) GetRequestContextId ¶
func (*Feed) GetValueJsonPath ¶
func (*Feed) ProtoMessage ¶
func (*Feed) ProtoMessage()
func (*Feed) ProtoReflect ¶
func (x *Feed) ProtoReflect() protoreflect.Message
type FeedContext ¶
type FeedContext struct { Feed *Feed `protobuf:"bytes,1,opt,name=feed,proto3" json:"feed,omitempty"` ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` Providers []string `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` ServiceFeeCap []*v1beta11.Coin `protobuf:"bytes,6,rep,name=service_fee_cap,json=serviceFeeCap,proto3" json:"service_fee_cap,omitempty"` RepeatedFrequency uint64 `protobuf:"varint,7,opt,name=repeated_frequency,json=repeatedFrequency,proto3" json:"repeated_frequency,omitempty"` ResponseThreshold uint32 `protobuf:"varint,8,opt,name=response_threshold,json=responseThreshold,proto3" json:"response_threshold,omitempty"` State service.RequestContextState `protobuf:"varint,9,opt,name=state,proto3,enum=irismod.service.RequestContextState" json:"state,omitempty"` // contains filtered or unexported fields }
FeedContext defines the feed context struct
func (*FeedContext) Descriptor
deprecated
func (*FeedContext) Descriptor() ([]byte, []int)
Deprecated: Use FeedContext.ProtoReflect.Descriptor instead.
func (*FeedContext) GetFeed ¶
func (x *FeedContext) GetFeed() *Feed
func (*FeedContext) GetInput ¶
func (x *FeedContext) GetInput() string
func (*FeedContext) GetProviders ¶
func (x *FeedContext) GetProviders() []string
func (*FeedContext) GetRepeatedFrequency ¶
func (x *FeedContext) GetRepeatedFrequency() uint64
func (*FeedContext) GetResponseThreshold ¶
func (x *FeedContext) GetResponseThreshold() uint32
func (*FeedContext) GetServiceFeeCap ¶
func (x *FeedContext) GetServiceFeeCap() []*v1beta11.Coin
func (*FeedContext) GetServiceName ¶
func (x *FeedContext) GetServiceName() string
func (*FeedContext) GetState ¶
func (x *FeedContext) GetState() service.RequestContextState
func (*FeedContext) GetTimeout ¶
func (x *FeedContext) GetTimeout() int64
func (*FeedContext) ProtoMessage ¶
func (*FeedContext) ProtoMessage()
func (*FeedContext) ProtoReflect ¶
func (x *FeedContext) ProtoReflect() protoreflect.Message
func (*FeedContext) Reset ¶
func (x *FeedContext) Reset()
func (*FeedContext) String ¶
func (x *FeedContext) String() string
type FeedEntry ¶
type FeedEntry struct { Feed *Feed `protobuf:"bytes,1,opt,name=feed,proto3" json:"feed,omitempty"` State service.RequestContextState `protobuf:"varint,2,opt,name=state,proto3,enum=irismod.service.RequestContextState" json:"state,omitempty"` Values []*FeedValue `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*FeedEntry) Descriptor
deprecated
func (*FeedEntry) GetState ¶
func (x *FeedEntry) GetState() service.RequestContextState
func (*FeedEntry) ProtoMessage ¶
func (*FeedEntry) ProtoMessage()
func (*FeedEntry) ProtoReflect ¶
func (x *FeedEntry) ProtoReflect() protoreflect.Message
type FeedValue ¶
type FeedValue struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
FeedValue defines the feed result standard
func (*FeedValue) Descriptor
deprecated
func (*FeedValue) GetTimestamp ¶
func (x *FeedValue) GetTimestamp() *timestamppb.Timestamp
func (*FeedValue) ProtoMessage ¶
func (*FeedValue) ProtoMessage()
func (*FeedValue) ProtoReflect ¶
func (x *FeedValue) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct { Entries []*FeedEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` // contains filtered or unexported fields }
GenesisState defines the oracle module's genesis state
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetEntries ¶
func (x *GenesisState) GetEntries() []*FeedEntry
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 { // CreateFeed defines a method for creating a new feed CreateFeed(ctx context.Context, in *MsgCreateFeed, opts ...grpc.CallOption) (*MsgCreateFeedResponse, error) // EditFeed defines a method for editing a feed EditFeed(ctx context.Context, in *MsgEditFeed, opts ...grpc.CallOption) (*MsgEditFeedResponse, error) // StartFeed defines a method for starting a feed StartFeed(ctx context.Context, in *MsgStartFeed, opts ...grpc.CallOption) (*MsgStartFeedResponse, error) // PauseFeed defines a method for pausing a feed PauseFeed(ctx context.Context, in *MsgPauseFeed, opts ...grpc.CallOption) (*MsgPauseFeedResponse, 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.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgCreateFeed ¶
type MsgCreateFeed struct { FeedName string `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty"` LatestHistory uint64 `protobuf:"varint,2,opt,name=latest_history,json=latestHistory,proto3" json:"latest_history,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` ServiceName string `protobuf:"bytes,5,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` Providers []string `protobuf:"bytes,6,rep,name=providers,proto3" json:"providers,omitempty"` Input string `protobuf:"bytes,7,opt,name=input,proto3" json:"input,omitempty"` Timeout int64 `protobuf:"varint,8,opt,name=timeout,proto3" json:"timeout,omitempty"` ServiceFeeCap []*v1beta1.Coin `protobuf:"bytes,9,rep,name=service_fee_cap,json=serviceFeeCap,proto3" json:"service_fee_cap,omitempty"` RepeatedFrequency uint64 `protobuf:"varint,10,opt,name=repeated_frequency,json=repeatedFrequency,proto3" json:"repeated_frequency,omitempty"` AggregateFunc string `protobuf:"bytes,11,opt,name=aggregate_func,json=aggregateFunc,proto3" json:"aggregate_func,omitempty"` ValueJsonPath string `protobuf:"bytes,12,opt,name=value_json_path,json=valueJsonPath,proto3" json:"value_json_path,omitempty"` ResponseThreshold uint32 `protobuf:"varint,13,opt,name=response_threshold,json=responseThreshold,proto3" json:"response_threshold,omitempty"` // contains filtered or unexported fields }
MsgCreateFeed defines an sdk.Msg type that supports creating a feed
func (*MsgCreateFeed) Descriptor
deprecated
func (*MsgCreateFeed) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateFeed.ProtoReflect.Descriptor instead.
func (*MsgCreateFeed) GetAggregateFunc ¶
func (x *MsgCreateFeed) GetAggregateFunc() string
func (*MsgCreateFeed) GetCreator ¶
func (x *MsgCreateFeed) GetCreator() string
func (*MsgCreateFeed) GetDescription ¶
func (x *MsgCreateFeed) GetDescription() string
func (*MsgCreateFeed) GetFeedName ¶
func (x *MsgCreateFeed) GetFeedName() string
func (*MsgCreateFeed) GetInput ¶
func (x *MsgCreateFeed) GetInput() string
func (*MsgCreateFeed) GetLatestHistory ¶
func (x *MsgCreateFeed) GetLatestHistory() uint64
func (*MsgCreateFeed) GetProviders ¶
func (x *MsgCreateFeed) GetProviders() []string
func (*MsgCreateFeed) GetRepeatedFrequency ¶
func (x *MsgCreateFeed) GetRepeatedFrequency() uint64
func (*MsgCreateFeed) GetResponseThreshold ¶
func (x *MsgCreateFeed) GetResponseThreshold() uint32
func (*MsgCreateFeed) GetServiceFeeCap ¶
func (x *MsgCreateFeed) GetServiceFeeCap() []*v1beta1.Coin
func (*MsgCreateFeed) GetServiceName ¶
func (x *MsgCreateFeed) GetServiceName() string
func (*MsgCreateFeed) GetTimeout ¶
func (x *MsgCreateFeed) GetTimeout() int64
func (*MsgCreateFeed) GetValueJsonPath ¶
func (x *MsgCreateFeed) GetValueJsonPath() string
func (*MsgCreateFeed) ProtoMessage ¶
func (*MsgCreateFeed) ProtoMessage()
func (*MsgCreateFeed) ProtoReflect ¶
func (x *MsgCreateFeed) ProtoReflect() protoreflect.Message
func (*MsgCreateFeed) Reset ¶
func (x *MsgCreateFeed) Reset()
func (*MsgCreateFeed) String ¶
func (x *MsgCreateFeed) String() string
type MsgCreateFeedResponse ¶
type MsgCreateFeedResponse struct {
// contains filtered or unexported fields
}
MsgCreateFeedResponse defines the Msg/CreateFeed response type
func (*MsgCreateFeedResponse) Descriptor
deprecated
func (*MsgCreateFeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateFeedResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateFeedResponse) ProtoMessage ¶
func (*MsgCreateFeedResponse) ProtoMessage()
func (*MsgCreateFeedResponse) ProtoReflect ¶
func (x *MsgCreateFeedResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateFeedResponse) Reset ¶
func (x *MsgCreateFeedResponse) Reset()
func (*MsgCreateFeedResponse) String ¶
func (x *MsgCreateFeedResponse) String() string
type MsgEditFeed ¶
type MsgEditFeed struct { FeedName string `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` LatestHistory uint64 `protobuf:"varint,3,opt,name=latest_history,json=latestHistory,proto3" json:"latest_history,omitempty"` Providers []string `protobuf:"bytes,4,rep,name=providers,proto3" json:"providers,omitempty"` Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` ServiceFeeCap []*v1beta1.Coin `protobuf:"bytes,6,rep,name=service_fee_cap,json=serviceFeeCap,proto3" json:"service_fee_cap,omitempty"` RepeatedFrequency uint64 `protobuf:"varint,7,opt,name=repeated_frequency,json=repeatedFrequency,proto3" json:"repeated_frequency,omitempty"` ResponseThreshold uint32 `protobuf:"varint,8,opt,name=response_threshold,json=responseThreshold,proto3" json:"response_threshold,omitempty"` Creator string `protobuf:"bytes,9,opt,name=creator,proto3" json:"creator,omitempty"` // contains filtered or unexported fields }
MsgEditFeed defines an sdk.Msg type that supports editing a feed
func (*MsgEditFeed) Descriptor
deprecated
func (*MsgEditFeed) Descriptor() ([]byte, []int)
Deprecated: Use MsgEditFeed.ProtoReflect.Descriptor instead.
func (*MsgEditFeed) GetCreator ¶
func (x *MsgEditFeed) GetCreator() string
func (*MsgEditFeed) GetDescription ¶
func (x *MsgEditFeed) GetDescription() string
func (*MsgEditFeed) GetFeedName ¶
func (x *MsgEditFeed) GetFeedName() string
func (*MsgEditFeed) GetLatestHistory ¶
func (x *MsgEditFeed) GetLatestHistory() uint64
func (*MsgEditFeed) GetProviders ¶
func (x *MsgEditFeed) GetProviders() []string
func (*MsgEditFeed) GetRepeatedFrequency ¶
func (x *MsgEditFeed) GetRepeatedFrequency() uint64
func (*MsgEditFeed) GetResponseThreshold ¶
func (x *MsgEditFeed) GetResponseThreshold() uint32
func (*MsgEditFeed) GetServiceFeeCap ¶
func (x *MsgEditFeed) GetServiceFeeCap() []*v1beta1.Coin
func (*MsgEditFeed) GetTimeout ¶
func (x *MsgEditFeed) GetTimeout() int64
func (*MsgEditFeed) ProtoMessage ¶
func (*MsgEditFeed) ProtoMessage()
func (*MsgEditFeed) ProtoReflect ¶
func (x *MsgEditFeed) ProtoReflect() protoreflect.Message
func (*MsgEditFeed) Reset ¶
func (x *MsgEditFeed) Reset()
func (*MsgEditFeed) String ¶
func (x *MsgEditFeed) String() string
type MsgEditFeedResponse ¶
type MsgEditFeedResponse struct {
// contains filtered or unexported fields
}
MsgEditFeedResponse defines the Msg/EditFeed response type
func (*MsgEditFeedResponse) Descriptor
deprecated
func (*MsgEditFeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgEditFeedResponse.ProtoReflect.Descriptor instead.
func (*MsgEditFeedResponse) ProtoMessage ¶
func (*MsgEditFeedResponse) ProtoMessage()
func (*MsgEditFeedResponse) ProtoReflect ¶
func (x *MsgEditFeedResponse) ProtoReflect() protoreflect.Message
func (*MsgEditFeedResponse) Reset ¶
func (x *MsgEditFeedResponse) Reset()
func (*MsgEditFeedResponse) String ¶
func (x *MsgEditFeedResponse) String() string
type MsgPauseFeed ¶
type MsgPauseFeed struct { FeedName string `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // contains filtered or unexported fields }
MsgPauseFeed defines an sdk.Msg type that supports pausing a feed
func (*MsgPauseFeed) Descriptor
deprecated
func (*MsgPauseFeed) Descriptor() ([]byte, []int)
Deprecated: Use MsgPauseFeed.ProtoReflect.Descriptor instead.
func (*MsgPauseFeed) GetCreator ¶
func (x *MsgPauseFeed) GetCreator() string
func (*MsgPauseFeed) GetFeedName ¶
func (x *MsgPauseFeed) GetFeedName() string
func (*MsgPauseFeed) ProtoMessage ¶
func (*MsgPauseFeed) ProtoMessage()
func (*MsgPauseFeed) ProtoReflect ¶
func (x *MsgPauseFeed) ProtoReflect() protoreflect.Message
func (*MsgPauseFeed) Reset ¶
func (x *MsgPauseFeed) Reset()
func (*MsgPauseFeed) String ¶
func (x *MsgPauseFeed) String() string
type MsgPauseFeedResponse ¶
type MsgPauseFeedResponse struct {
// contains filtered or unexported fields
}
MsgPauseFeedResponse defines the Msg/PauseFeed response type
func (*MsgPauseFeedResponse) Descriptor
deprecated
func (*MsgPauseFeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgPauseFeedResponse.ProtoReflect.Descriptor instead.
func (*MsgPauseFeedResponse) ProtoMessage ¶
func (*MsgPauseFeedResponse) ProtoMessage()
func (*MsgPauseFeedResponse) ProtoReflect ¶
func (x *MsgPauseFeedResponse) ProtoReflect() protoreflect.Message
func (*MsgPauseFeedResponse) Reset ¶
func (x *MsgPauseFeedResponse) Reset()
func (*MsgPauseFeedResponse) String ¶
func (x *MsgPauseFeedResponse) String() string
type MsgServer ¶
type MsgServer interface { // CreateFeed defines a method for creating a new feed CreateFeed(context.Context, *MsgCreateFeed) (*MsgCreateFeedResponse, error) // EditFeed defines a method for editing a feed EditFeed(context.Context, *MsgEditFeed) (*MsgEditFeedResponse, error) // StartFeed defines a method for starting a feed StartFeed(context.Context, *MsgStartFeed) (*MsgStartFeedResponse, error) // PauseFeed defines a method for pausing a feed PauseFeed(context.Context, *MsgPauseFeed) (*MsgPauseFeedResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgStartFeed ¶
type MsgStartFeed struct { FeedName string `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // contains filtered or unexported fields }
MsgPauseFeed defines an sdk.Msg type that supports stating a feed
func (*MsgStartFeed) Descriptor
deprecated
func (*MsgStartFeed) Descriptor() ([]byte, []int)
Deprecated: Use MsgStartFeed.ProtoReflect.Descriptor instead.
func (*MsgStartFeed) GetCreator ¶
func (x *MsgStartFeed) GetCreator() string
func (*MsgStartFeed) GetFeedName ¶
func (x *MsgStartFeed) GetFeedName() string
func (*MsgStartFeed) ProtoMessage ¶
func (*MsgStartFeed) ProtoMessage()
func (*MsgStartFeed) ProtoReflect ¶
func (x *MsgStartFeed) ProtoReflect() protoreflect.Message
func (*MsgStartFeed) Reset ¶
func (x *MsgStartFeed) Reset()
func (*MsgStartFeed) String ¶
func (x *MsgStartFeed) String() string
type MsgStartFeedResponse ¶
type MsgStartFeedResponse struct {
// contains filtered or unexported fields
}
MsgStartFeedResponse defines the Msg/StartFeed response type
func (*MsgStartFeedResponse) Descriptor
deprecated
func (*MsgStartFeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgStartFeedResponse.ProtoReflect.Descriptor instead.
func (*MsgStartFeedResponse) ProtoMessage ¶
func (*MsgStartFeedResponse) ProtoMessage()
func (*MsgStartFeedResponse) ProtoReflect ¶
func (x *MsgStartFeedResponse) ProtoReflect() protoreflect.Message
func (*MsgStartFeedResponse) Reset ¶
func (x *MsgStartFeedResponse) Reset()
func (*MsgStartFeedResponse) String ¶
func (x *MsgStartFeedResponse) String() string
type QueryClient ¶
type QueryClient interface { // Feed queries the feed Feed(ctx context.Context, in *QueryFeedRequest, opts ...grpc.CallOption) (*QueryFeedResponse, error) // Feeds queries the feed list Feeds(ctx context.Context, in *QueryFeedsRequest, opts ...grpc.CallOption) (*QueryFeedsResponse, error) // FeedValue queries the feed value FeedValue(ctx context.Context, in *QueryFeedValueRequest, opts ...grpc.CallOption) (*QueryFeedValueResponse, error) }
QueryClient is the client API for Query 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 NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryFeedRequest ¶
type QueryFeedRequest struct { FeedName string `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty"` // contains filtered or unexported fields }
QueryFeedRequest is request type for the Query/Feed RPC method
func (*QueryFeedRequest) Descriptor
deprecated
func (*QueryFeedRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryFeedRequest.ProtoReflect.Descriptor instead.
func (*QueryFeedRequest) GetFeedName ¶
func (x *QueryFeedRequest) GetFeedName() string
func (*QueryFeedRequest) ProtoMessage ¶
func (*QueryFeedRequest) ProtoMessage()
func (*QueryFeedRequest) ProtoReflect ¶
func (x *QueryFeedRequest) ProtoReflect() protoreflect.Message
func (*QueryFeedRequest) Reset ¶
func (x *QueryFeedRequest) Reset()
func (*QueryFeedRequest) String ¶
func (x *QueryFeedRequest) String() string
type QueryFeedResponse ¶
type QueryFeedResponse struct { Feed *FeedContext `protobuf:"bytes,1,opt,name=feed,proto3" json:"feed,omitempty"` // contains filtered or unexported fields }
QueryFeedResponse is response type for the Query/Feed RPC method
func (*QueryFeedResponse) Descriptor
deprecated
func (*QueryFeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryFeedResponse.ProtoReflect.Descriptor instead.
func (*QueryFeedResponse) GetFeed ¶
func (x *QueryFeedResponse) GetFeed() *FeedContext
func (*QueryFeedResponse) ProtoMessage ¶
func (*QueryFeedResponse) ProtoMessage()
func (*QueryFeedResponse) ProtoReflect ¶
func (x *QueryFeedResponse) ProtoReflect() protoreflect.Message
func (*QueryFeedResponse) Reset ¶
func (x *QueryFeedResponse) Reset()
func (*QueryFeedResponse) String ¶
func (x *QueryFeedResponse) String() string
type QueryFeedValueRequest ¶
type QueryFeedValueRequest struct { FeedName string `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty"` // contains filtered or unexported fields }
QueryFeedValueRequest is request type for the Query/FeedValue RPC method
func (*QueryFeedValueRequest) Descriptor
deprecated
func (*QueryFeedValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryFeedValueRequest.ProtoReflect.Descriptor instead.
func (*QueryFeedValueRequest) GetFeedName ¶
func (x *QueryFeedValueRequest) GetFeedName() string
func (*QueryFeedValueRequest) ProtoMessage ¶
func (*QueryFeedValueRequest) ProtoMessage()
func (*QueryFeedValueRequest) ProtoReflect ¶
func (x *QueryFeedValueRequest) ProtoReflect() protoreflect.Message
func (*QueryFeedValueRequest) Reset ¶
func (x *QueryFeedValueRequest) Reset()
func (*QueryFeedValueRequest) String ¶
func (x *QueryFeedValueRequest) String() string
type QueryFeedValueResponse ¶
type QueryFeedValueResponse struct { FeedValues []*FeedValue `protobuf:"bytes,1,rep,name=feed_values,json=feedValues,proto3" json:"feed_values,omitempty"` // contains filtered or unexported fields }
QueryFeedValueResponse is response type for the Query/FeedValue RPC method
func (*QueryFeedValueResponse) Descriptor
deprecated
func (*QueryFeedValueResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryFeedValueResponse.ProtoReflect.Descriptor instead.
func (*QueryFeedValueResponse) GetFeedValues ¶
func (x *QueryFeedValueResponse) GetFeedValues() []*FeedValue
func (*QueryFeedValueResponse) ProtoMessage ¶
func (*QueryFeedValueResponse) ProtoMessage()
func (*QueryFeedValueResponse) ProtoReflect ¶
func (x *QueryFeedValueResponse) ProtoReflect() protoreflect.Message
func (*QueryFeedValueResponse) Reset ¶
func (x *QueryFeedValueResponse) Reset()
func (*QueryFeedValueResponse) String ¶
func (x *QueryFeedValueResponse) String() string
type QueryFeedsRequest ¶
type QueryFeedsRequest struct { State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` // pagination defines an optional pagination for the request Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryFeedsRequest is request type for the Query/Feeds RPC method
func (*QueryFeedsRequest) Descriptor
deprecated
func (*QueryFeedsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryFeedsRequest.ProtoReflect.Descriptor instead.
func (*QueryFeedsRequest) GetPagination ¶
func (x *QueryFeedsRequest) GetPagination() *v1beta1.PageRequest
func (*QueryFeedsRequest) GetState ¶
func (x *QueryFeedsRequest) GetState() string
func (*QueryFeedsRequest) ProtoMessage ¶
func (*QueryFeedsRequest) ProtoMessage()
func (*QueryFeedsRequest) ProtoReflect ¶
func (x *QueryFeedsRequest) ProtoReflect() protoreflect.Message
func (*QueryFeedsRequest) Reset ¶
func (x *QueryFeedsRequest) Reset()
func (*QueryFeedsRequest) String ¶
func (x *QueryFeedsRequest) String() string
type QueryFeedsResponse ¶
type QueryFeedsResponse struct { Feeds []*FeedContext `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds,omitempty"` // pagination defines an optional pagination for the request Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryFeedsResponse is response type for the Query/Feeds RPC method
func (*QueryFeedsResponse) Descriptor
deprecated
func (*QueryFeedsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryFeedsResponse.ProtoReflect.Descriptor instead.
func (*QueryFeedsResponse) GetFeeds ¶
func (x *QueryFeedsResponse) GetFeeds() []*FeedContext
func (*QueryFeedsResponse) GetPagination ¶
func (x *QueryFeedsResponse) GetPagination() *v1beta1.PageResponse
func (*QueryFeedsResponse) ProtoMessage ¶
func (*QueryFeedsResponse) ProtoMessage()
func (*QueryFeedsResponse) ProtoReflect ¶
func (x *QueryFeedsResponse) ProtoReflect() protoreflect.Message
func (*QueryFeedsResponse) Reset ¶
func (x *QueryFeedsResponse) Reset()
func (*QueryFeedsResponse) String ¶
func (x *QueryFeedsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Feed queries the feed Feed(context.Context, *QueryFeedRequest) (*QueryFeedResponse, error) // Feeds queries the feed list Feeds(context.Context, *QueryFeedsRequest) (*QueryFeedsResponse, error) // FeedValue queries the feed value FeedValue(context.Context, *QueryFeedValueRequest) (*QueryFeedValueResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) CreateFeed ¶
func (UnimplementedMsgServer) CreateFeed(context.Context, *MsgCreateFeed) (*MsgCreateFeedResponse, error)
func (UnimplementedMsgServer) EditFeed ¶
func (UnimplementedMsgServer) EditFeed(context.Context, *MsgEditFeed) (*MsgEditFeedResponse, error)
func (UnimplementedMsgServer) PauseFeed ¶
func (UnimplementedMsgServer) PauseFeed(context.Context, *MsgPauseFeed) (*MsgPauseFeedResponse, error)
func (UnimplementedMsgServer) StartFeed ¶
func (UnimplementedMsgServer) StartFeed(context.Context, *MsgStartFeed) (*MsgStartFeedResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Feed ¶
func (UnimplementedQueryServer) Feed(context.Context, *QueryFeedRequest) (*QueryFeedResponse, error)
func (UnimplementedQueryServer) FeedValue ¶
func (UnimplementedQueryServer) FeedValue(context.Context, *QueryFeedValueRequest) (*QueryFeedValueResponse, error)
func (UnimplementedQueryServer) Feeds ¶
func (UnimplementedQueryServer) Feeds(context.Context, *QueryFeedsRequest) (*QueryFeedsResponse, 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 UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.