Documentation
¶
Overview ¶
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 MsgClient
- type MsgIncreaseCountResponse
- func (*MsgIncreaseCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgIncreaseCountResponse) GetNewCount() int64
- func (*MsgIncreaseCountResponse) ProtoMessage()
- func (x *MsgIncreaseCountResponse) ProtoReflect() protoreflect.Message
- func (x *MsgIncreaseCountResponse) Reset()
- func (x *MsgIncreaseCountResponse) String() string
- type MsgIncreaseCounter
- func (*MsgIncreaseCounter) Descriptor() ([]byte, []int)deprecated
- func (x *MsgIncreaseCounter) GetCount() int64
- func (x *MsgIncreaseCounter) GetSigner() string
- func (*MsgIncreaseCounter) ProtoMessage()
- func (x *MsgIncreaseCounter) ProtoReflect() protoreflect.Message
- func (x *MsgIncreaseCounter) Reset()
- func (x *MsgIncreaseCounter) String() string
- type MsgServer
- type QueryClient
- type QueryGetCountRequest
- type QueryGetCountResponse
- func (*QueryGetCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetCountResponse) GetTotalCount() int64
- func (*QueryGetCountResponse) ProtoMessage()
- func (x *QueryGetCountResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGetCountResponse) Reset()
- func (x *QueryGetCountResponse) String() string
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const (
Msg_IncreaseCount_FullMethodName = "/cosmos.counter.v1.Msg/IncreaseCount"
)
const (
Query_GetCount_FullMethodName = "/cosmos.counter.v1.Query/GetCount"
)
Variables ¶
var File_cosmos_counter_v1_query_proto protoreflect.FileDescriptor
var File_cosmos_counter_v1_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.counter.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IncreaseCount", Handler: _Msg_IncreaseCount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/counter/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.counter.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCount", Handler: _Query_GetCount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/counter/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 MsgClient ¶
type MsgClient interface { // IncreaseCount increments the counter by the specified amount. IncreaseCount(ctx context.Context, in *MsgIncreaseCounter, opts ...grpc.CallOption) (*MsgIncreaseCountResponse, 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 counter Msg service.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgIncreaseCountResponse ¶
type MsgIncreaseCountResponse struct { // new_count is the number of times the counter was incremented. NewCount int64 `protobuf:"varint,1,opt,name=new_count,json=newCount,proto3" json:"new_count,omitempty"` // contains filtered or unexported fields }
MsgIncreaseCountResponse is the Msg/Counter response type.
func (*MsgIncreaseCountResponse) Descriptor
deprecated
func (*MsgIncreaseCountResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgIncreaseCountResponse.ProtoReflect.Descriptor instead.
func (*MsgIncreaseCountResponse) GetNewCount ¶
func (x *MsgIncreaseCountResponse) GetNewCount() int64
func (*MsgIncreaseCountResponse) ProtoMessage ¶
func (*MsgIncreaseCountResponse) ProtoMessage()
func (*MsgIncreaseCountResponse) ProtoReflect ¶
func (x *MsgIncreaseCountResponse) ProtoReflect() protoreflect.Message
func (*MsgIncreaseCountResponse) Reset ¶
func (x *MsgIncreaseCountResponse) Reset()
func (*MsgIncreaseCountResponse) String ¶
func (x *MsgIncreaseCountResponse) String() string
type MsgIncreaseCounter ¶
type MsgIncreaseCounter struct { // signer is the address that controls the module (defaults to x/gov unless overwritten). Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` // count is the number of times to increment the counter. Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
MsgIncreaseCounter defines a count Msg service counter.
func (*MsgIncreaseCounter) Descriptor
deprecated
func (*MsgIncreaseCounter) Descriptor() ([]byte, []int)
Deprecated: Use MsgIncreaseCounter.ProtoReflect.Descriptor instead.
func (*MsgIncreaseCounter) GetCount ¶
func (x *MsgIncreaseCounter) GetCount() int64
func (*MsgIncreaseCounter) GetSigner ¶
func (x *MsgIncreaseCounter) GetSigner() string
func (*MsgIncreaseCounter) ProtoMessage ¶
func (*MsgIncreaseCounter) ProtoMessage()
func (*MsgIncreaseCounter) ProtoReflect ¶
func (x *MsgIncreaseCounter) ProtoReflect() protoreflect.Message
func (*MsgIncreaseCounter) Reset ¶
func (x *MsgIncreaseCounter) Reset()
func (*MsgIncreaseCounter) String ¶
func (x *MsgIncreaseCounter) String() string
type MsgServer ¶
type MsgServer interface { // IncreaseCount increments the counter by the specified amount. IncreaseCount(context.Context, *MsgIncreaseCounter) (*MsgIncreaseCountResponse, 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 counter Msg service.
type QueryClient ¶
type QueryClient interface { // GetCount queries the parameters of x/Counter module. GetCount(ctx context.Context, in *QueryGetCountRequest, opts ...grpc.CallOption) (*QueryGetCountResponse, 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.
Query defines the gRPC querier service.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryGetCountRequest ¶
type QueryGetCountRequest struct {
// contains filtered or unexported fields
}
QueryGetCountRequest defines the request type for querying x/mock count.
func (*QueryGetCountRequest) Descriptor
deprecated
func (*QueryGetCountRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetCountRequest.ProtoReflect.Descriptor instead.
func (*QueryGetCountRequest) ProtoMessage ¶
func (*QueryGetCountRequest) ProtoMessage()
func (*QueryGetCountRequest) ProtoReflect ¶
func (x *QueryGetCountRequest) ProtoReflect() protoreflect.Message
func (*QueryGetCountRequest) Reset ¶
func (x *QueryGetCountRequest) Reset()
func (*QueryGetCountRequest) String ¶
func (x *QueryGetCountRequest) String() string
type QueryGetCountResponse ¶
type QueryGetCountResponse struct { TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
QueryGetCountResponse defines the response type for querying x/mock count.
func (*QueryGetCountResponse) Descriptor
deprecated
func (*QueryGetCountResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetCountResponse.ProtoReflect.Descriptor instead.
func (*QueryGetCountResponse) GetTotalCount ¶
func (x *QueryGetCountResponse) GetTotalCount() int64
func (*QueryGetCountResponse) ProtoMessage ¶
func (*QueryGetCountResponse) ProtoMessage()
func (*QueryGetCountResponse) ProtoReflect ¶
func (x *QueryGetCountResponse) ProtoReflect() protoreflect.Message
func (*QueryGetCountResponse) Reset ¶
func (x *QueryGetCountResponse) Reset()
func (*QueryGetCountResponse) String ¶
func (x *QueryGetCountResponse) String() string
type QueryServer ¶
type QueryServer interface { // GetCount queries the parameters of x/Counter module. GetCount(context.Context, *QueryGetCountRequest) (*QueryGetCountResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility.
Query defines the gRPC querier service.
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) IncreaseCount ¶
func (UnimplementedMsgServer) IncreaseCount(context.Context, *MsgIncreaseCounter) (*MsgIncreaseCountResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer 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 (UnimplementedQueryServer) GetCount ¶
func (UnimplementedQueryServer) GetCount(context.Context, *QueryGetCountRequest) (*QueryGetCountResponse, 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.