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 RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Counter
- type GenesisState
- type MsgClient
- type MsgIncrementCounter
- func (*MsgIncrementCounter) Descriptor() ([]byte, []int)deprecated
- func (x *MsgIncrementCounter) GetSender() string
- func (*MsgIncrementCounter) ProtoMessage()
- func (x *MsgIncrementCounter) ProtoReflect() protoreflect.Message
- func (x *MsgIncrementCounter) Reset()
- func (x *MsgIncrementCounter) String() string
- type MsgIncrementCounterResponse
- type MsgServer
- type Price
- type QueryClient
- type QueryCounterRequest
- func (*QueryCounterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCounterRequest) GetAddress() string
- func (*QueryCounterRequest) ProtoMessage()
- func (x *QueryCounterRequest) ProtoReflect() protoreflect.Message
- func (x *QueryCounterRequest) Reset()
- func (x *QueryCounterRequest) String() string
- type QueryCounterResponse
- func (*QueryCounterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCounterResponse) GetCounter() uint64
- func (*QueryCounterResponse) ProtoMessage()
- func (x *QueryCounterResponse) ProtoReflect() protoreflect.Message
- func (x *QueryCounterResponse) Reset()
- func (x *QueryCounterResponse) String() string
- type QueryPricesRequest
- type QueryPricesResponse
- func (*QueryPricesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPricesResponse) GetPrices() []*Price
- func (*QueryPricesResponse) ProtoMessage()
- func (x *QueryPricesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryPricesResponse) Reset()
- func (x *QueryPricesResponse) String() string
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Counter_FullMethodName = "/cosmos.oracle.v1.Query/Counter" Query_Prices_FullMethodName = "/cosmos.oracle.v1.Query/Prices" )
const (
Msg_IncrementCounter_FullMethodName = "/cosmos.oracle.v1.Msg/IncrementCounter"
)
Variables ¶
var File_cosmos_oracle_v1_query_proto protoreflect.FileDescriptor
var File_cosmos_oracle_v1_tx_proto protoreflect.FileDescriptor
var File_cosmos_oracle_v1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.oracle.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IncrementCounter", Handler: _Msg_IncrementCounter_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/oracle/v1/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: "cosmos.oracle.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Counter", Handler: _Query_Counter_Handler, }, { MethodName: "Prices", Handler: _Query_Prices_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/oracle/v1/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 Counter ¶
type Counter struct { // count defines the count of the counter. Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // address defines the address that is associated with the count. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
Counter defines a counter object. It is used only for genesis purposes. Collections does not need to use it.
func (*Counter) Descriptor
deprecated
func (*Counter) GetAddress ¶
func (*Counter) ProtoMessage ¶
func (*Counter) ProtoMessage()
func (*Counter) ProtoReflect ¶
func (x *Counter) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct { // counter defines the counter object. Counters []*Counter `protobuf:"bytes,1,rep,name=counters,proto3" json:"counters,omitempty"` // contains filtered or unexported fields }
GenesisState is the state that must be provided at genesis.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetCounters ¶
func (x *GenesisState) GetCounters() []*Counter
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 { // IncrementCounter increments the counter. IncrementCounter(ctx context.Context, in *MsgIncrementCounter, opts ...grpc.CallOption) (*MsgIncrementCounterResponse, 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 MsgIncrementCounter ¶
type MsgIncrementCounter struct { // sender is the message sender. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // contains filtered or unexported fields }
MsgIncrementCounter defines the Msg/IncrementCounter request type.
func (*MsgIncrementCounter) Descriptor
deprecated
func (*MsgIncrementCounter) Descriptor() ([]byte, []int)
Deprecated: Use MsgIncrementCounter.ProtoReflect.Descriptor instead.
func (*MsgIncrementCounter) GetSender ¶
func (x *MsgIncrementCounter) GetSender() string
func (*MsgIncrementCounter) ProtoMessage ¶
func (*MsgIncrementCounter) ProtoMessage()
func (*MsgIncrementCounter) ProtoReflect ¶
func (x *MsgIncrementCounter) ProtoReflect() protoreflect.Message
func (*MsgIncrementCounter) Reset ¶
func (x *MsgIncrementCounter) Reset()
func (*MsgIncrementCounter) String ¶
func (x *MsgIncrementCounter) String() string
type MsgIncrementCounterResponse ¶
type MsgIncrementCounterResponse struct {
// contains filtered or unexported fields
}
MsgIncrementCounterResponse defines the Msg/IncrementCounter response type.
func (*MsgIncrementCounterResponse) Descriptor
deprecated
func (*MsgIncrementCounterResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgIncrementCounterResponse.ProtoReflect.Descriptor instead.
func (*MsgIncrementCounterResponse) ProtoMessage ¶
func (*MsgIncrementCounterResponse) ProtoMessage()
func (*MsgIncrementCounterResponse) ProtoReflect ¶
func (x *MsgIncrementCounterResponse) ProtoReflect() protoreflect.Message
func (*MsgIncrementCounterResponse) Reset ¶
func (x *MsgIncrementCounterResponse) Reset()
func (*MsgIncrementCounterResponse) String ¶
func (x *MsgIncrementCounterResponse) String() string
type MsgServer ¶
type MsgServer interface { // IncrementCounter increments the counter. IncrementCounter(context.Context, *MsgIncrementCounter) (*MsgIncrementCounterResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type Price ¶
type Price struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
Price represents the price of a specific symbol.
func (*Price) Descriptor
deprecated
func (*Price) ProtoMessage ¶
func (*Price) ProtoMessage()
func (*Price) ProtoReflect ¶
func (x *Price) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { // Counter returns the current counter value. Counter(ctx context.Context, in *QueryCounterRequest, opts ...grpc.CallOption) (*QueryCounterResponse, error) // Prices returns the current prices. Prices(ctx context.Context, in *QueryPricesRequest, opts ...grpc.CallOption) (*QueryPricesResponse, 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 QueryCounterRequest ¶
type QueryCounterRequest struct { // address defines the address to query for the counter. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
QueryCounterRequest is the request type for the Query/Counter RPC method.
func (*QueryCounterRequest) Descriptor
deprecated
func (*QueryCounterRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryCounterRequest.ProtoReflect.Descriptor instead.
func (*QueryCounterRequest) GetAddress ¶
func (x *QueryCounterRequest) GetAddress() string
func (*QueryCounterRequest) ProtoMessage ¶
func (*QueryCounterRequest) ProtoMessage()
func (*QueryCounterRequest) ProtoReflect ¶
func (x *QueryCounterRequest) ProtoReflect() protoreflect.Message
func (*QueryCounterRequest) Reset ¶
func (x *QueryCounterRequest) Reset()
func (*QueryCounterRequest) String ¶
func (x *QueryCounterRequest) String() string
type QueryCounterResponse ¶
type QueryCounterResponse struct { // counter defines the current counter for the sender. Counter uint64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"` // contains filtered or unexported fields }
QueryCounterResponse is the response type for the Query/Counter RPC method.
func (*QueryCounterResponse) Descriptor
deprecated
func (*QueryCounterResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryCounterResponse.ProtoReflect.Descriptor instead.
func (*QueryCounterResponse) GetCounter ¶
func (x *QueryCounterResponse) GetCounter() uint64
func (*QueryCounterResponse) ProtoMessage ¶
func (*QueryCounterResponse) ProtoMessage()
func (*QueryCounterResponse) ProtoReflect ¶
func (x *QueryCounterResponse) ProtoReflect() protoreflect.Message
func (*QueryCounterResponse) Reset ¶
func (x *QueryCounterResponse) Reset()
func (*QueryCounterResponse) String ¶
func (x *QueryCounterResponse) String() string
type QueryPricesRequest ¶
type QueryPricesRequest struct {
// contains filtered or unexported fields
}
QueryPricesRequest is the request type for the Query/Prices RPC method.
func (*QueryPricesRequest) Descriptor
deprecated
func (*QueryPricesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryPricesRequest.ProtoReflect.Descriptor instead.
func (*QueryPricesRequest) ProtoMessage ¶
func (*QueryPricesRequest) ProtoMessage()
func (*QueryPricesRequest) ProtoReflect ¶
func (x *QueryPricesRequest) ProtoReflect() protoreflect.Message
func (*QueryPricesRequest) Reset ¶
func (x *QueryPricesRequest) Reset()
func (*QueryPricesRequest) String ¶
func (x *QueryPricesRequest) String() string
type QueryPricesResponse ¶
type QueryPricesResponse struct { Prices []*Price `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty"` // contains filtered or unexported fields }
QueryPricesResponse is the response type for the Query/Prices RPC method.
func (*QueryPricesResponse) Descriptor
deprecated
func (*QueryPricesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryPricesResponse.ProtoReflect.Descriptor instead.
func (*QueryPricesResponse) GetPrices ¶
func (x *QueryPricesResponse) GetPrices() []*Price
func (*QueryPricesResponse) ProtoMessage ¶
func (*QueryPricesResponse) ProtoMessage()
func (*QueryPricesResponse) ProtoReflect ¶
func (x *QueryPricesResponse) ProtoReflect() protoreflect.Message
func (*QueryPricesResponse) Reset ¶
func (x *QueryPricesResponse) Reset()
func (*QueryPricesResponse) String ¶
func (x *QueryPricesResponse) String() string
type QueryServer ¶
type QueryServer interface { // Counter returns the current counter value. Counter(context.Context, *QueryCounterRequest) (*QueryCounterResponse, error) // Prices returns the current prices. Prices(context.Context, *QueryPricesRequest) (*QueryPricesResponse, 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) IncrementCounter ¶
func (UnimplementedMsgServer) IncrementCounter(context.Context, *MsgIncrementCounter) (*MsgIncrementCounterResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Counter ¶
func (UnimplementedQueryServer) Counter(context.Context, *QueryCounterRequest) (*QueryCounterResponse, error)
func (UnimplementedQueryServer) Prices ¶
func (UnimplementedQueryServer) Prices(context.Context, *QueryPricesRequest) (*QueryPricesResponse, 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.