oraclev1

package
v0.0.0-...-8edd000 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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

View Source
const (
	Query_Counter_FullMethodName = "/cosmos.oracle.v1.Query/Counter"
	Query_Prices_FullMethodName  = "/cosmos.oracle.v1.Query/Prices"
)
View Source
const (
	Msg_IncrementCounter_FullMethodName = "/cosmos.oracle.v1.Msg/IncrementCounter"
)

Variables

View Source
var File_cosmos_oracle_v1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_oracle_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_cosmos_oracle_v1_types_proto protoreflect.FileDescriptor
View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Counter.ProtoReflect.Descriptor instead.

func (*Counter) GetAddress

func (x *Counter) GetAddress() string

func (*Counter) GetCount

func (x *Counter) GetCount() uint64

func (*Counter) ProtoMessage

func (*Counter) ProtoMessage()

func (*Counter) ProtoReflect

func (x *Counter) ProtoReflect() protoreflect.Message

func (*Counter) Reset

func (x *Counter) Reset()

func (*Counter) String

func (x *Counter) String() string

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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Price.ProtoReflect.Descriptor instead.

func (*Price) GetPrice

func (x *Price) GetPrice() string

func (*Price) GetSymbol

func (x *Price) GetSymbol() string

func (*Price) ProtoMessage

func (*Price) ProtoMessage()

func (*Price) ProtoReflect

func (x *Price) ProtoReflect() protoreflect.Message

func (*Price) Reset

func (x *Price) Reset()

func (*Price) String

func (x *Price) String() string

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Counter

func (UnimplementedQueryServer) Prices

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.

Jump to

Keyboard shortcuts

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