Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type MsgClient
- type MsgIncreaseCountResponse
- func (*MsgIncreaseCountResponse) Descriptor() ([]byte, []int)
- func (m *MsgIncreaseCountResponse) GetNewCount() int64
- func (m *MsgIncreaseCountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIncreaseCountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIncreaseCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIncreaseCountResponse) ProtoMessage()
- func (m *MsgIncreaseCountResponse) Reset()
- func (m *MsgIncreaseCountResponse) Size() (n int)
- func (m *MsgIncreaseCountResponse) String() string
- func (m *MsgIncreaseCountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIncreaseCountResponse) XXX_DiscardUnknown()
- func (m *MsgIncreaseCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIncreaseCountResponse) XXX_Merge(src proto.Message)
- func (m *MsgIncreaseCountResponse) XXX_Size() int
- func (m *MsgIncreaseCountResponse) XXX_Unmarshal(b []byte) error
- type MsgIncreaseCounter
- func (*MsgIncreaseCounter) Descriptor() ([]byte, []int)
- func (m *MsgIncreaseCounter) GetCount() int64
- func (m *MsgIncreaseCounter) GetSigner() string
- func (m *MsgIncreaseCounter) Marshal() (dAtA []byte, err error)
- func (m *MsgIncreaseCounter) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIncreaseCounter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIncreaseCounter) ProtoMessage()
- func (m *MsgIncreaseCounter) Reset()
- func (m *MsgIncreaseCounter) Size() (n int)
- func (m *MsgIncreaseCounter) String() string
- func (m *MsgIncreaseCounter) Unmarshal(dAtA []byte) error
- func (m *MsgIncreaseCounter) XXX_DiscardUnknown()
- func (m *MsgIncreaseCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIncreaseCounter) XXX_Merge(src proto.Message)
- func (m *MsgIncreaseCounter) XXX_Size() int
- func (m *MsgIncreaseCounter) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryGetCountRequest
- func (*QueryGetCountRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetCountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetCountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetCountRequest) ProtoMessage()
- func (m *QueryGetCountRequest) Reset()
- func (m *QueryGetCountRequest) Size() (n int)
- func (m *QueryGetCountRequest) String() string
- func (m *QueryGetCountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetCountRequest) XXX_DiscardUnknown()
- func (m *QueryGetCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetCountRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetCountRequest) XXX_Size() int
- func (m *QueryGetCountRequest) XXX_Unmarshal(b []byte) error
- type QueryGetCountResponse
- func (*QueryGetCountResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetCountResponse) GetTotalCount() int64
- func (m *QueryGetCountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetCountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetCountResponse) ProtoMessage()
- func (m *QueryGetCountResponse) Reset()
- func (m *QueryGetCountResponse) Size() (n int)
- func (m *QueryGetCountResponse) String() string
- func (m *QueryGetCountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetCountResponse) XXX_DiscardUnknown()
- func (m *QueryGetCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetCountResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetCountResponse) XXX_Size() int
- func (m *QueryGetCountResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the name of the x/consensus module. ModuleName = "counter" // StoreKey defines the module's store key. StoreKey = ModuleName )
Variables ¶
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, 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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) 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"`
}
MsgIncreaseCountResponse is the Msg/Counter response type.
func (*MsgIncreaseCountResponse) Descriptor ¶
func (*MsgIncreaseCountResponse) Descriptor() ([]byte, []int)
func (*MsgIncreaseCountResponse) GetNewCount ¶
func (m *MsgIncreaseCountResponse) GetNewCount() int64
func (*MsgIncreaseCountResponse) Marshal ¶
func (m *MsgIncreaseCountResponse) Marshal() (dAtA []byte, err error)
func (*MsgIncreaseCountResponse) MarshalTo ¶
func (m *MsgIncreaseCountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgIncreaseCountResponse) MarshalToSizedBuffer ¶
func (m *MsgIncreaseCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIncreaseCountResponse) ProtoMessage ¶
func (*MsgIncreaseCountResponse) ProtoMessage()
func (*MsgIncreaseCountResponse) Reset ¶
func (m *MsgIncreaseCountResponse) Reset()
func (*MsgIncreaseCountResponse) Size ¶
func (m *MsgIncreaseCountResponse) Size() (n int)
func (*MsgIncreaseCountResponse) String ¶
func (m *MsgIncreaseCountResponse) String() string
func (*MsgIncreaseCountResponse) Unmarshal ¶
func (m *MsgIncreaseCountResponse) Unmarshal(dAtA []byte) error
func (*MsgIncreaseCountResponse) XXX_DiscardUnknown ¶
func (m *MsgIncreaseCountResponse) XXX_DiscardUnknown()
func (*MsgIncreaseCountResponse) XXX_Marshal ¶
func (m *MsgIncreaseCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIncreaseCountResponse) XXX_Merge ¶
func (m *MsgIncreaseCountResponse) XXX_Merge(src proto.Message)
func (*MsgIncreaseCountResponse) XXX_Size ¶
func (m *MsgIncreaseCountResponse) XXX_Size() int
func (*MsgIncreaseCountResponse) XXX_Unmarshal ¶
func (m *MsgIncreaseCountResponse) XXX_Unmarshal(b []byte) error
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"`
}
MsgIncreaseCounter defines a count Msg service counter.
func (*MsgIncreaseCounter) Descriptor ¶
func (*MsgIncreaseCounter) Descriptor() ([]byte, []int)
func (*MsgIncreaseCounter) GetCount ¶
func (m *MsgIncreaseCounter) GetCount() int64
func (*MsgIncreaseCounter) GetSigner ¶
func (m *MsgIncreaseCounter) GetSigner() string
func (*MsgIncreaseCounter) Marshal ¶
func (m *MsgIncreaseCounter) Marshal() (dAtA []byte, err error)
func (*MsgIncreaseCounter) MarshalTo ¶
func (m *MsgIncreaseCounter) MarshalTo(dAtA []byte) (int, error)
func (*MsgIncreaseCounter) MarshalToSizedBuffer ¶
func (m *MsgIncreaseCounter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIncreaseCounter) ProtoMessage ¶
func (*MsgIncreaseCounter) ProtoMessage()
func (*MsgIncreaseCounter) Reset ¶
func (m *MsgIncreaseCounter) Reset()
func (*MsgIncreaseCounter) Size ¶
func (m *MsgIncreaseCounter) Size() (n int)
func (*MsgIncreaseCounter) String ¶
func (m *MsgIncreaseCounter) String() string
func (*MsgIncreaseCounter) Unmarshal ¶
func (m *MsgIncreaseCounter) Unmarshal(dAtA []byte) error
func (*MsgIncreaseCounter) XXX_DiscardUnknown ¶
func (m *MsgIncreaseCounter) XXX_DiscardUnknown()
func (*MsgIncreaseCounter) XXX_Marshal ¶
func (m *MsgIncreaseCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIncreaseCounter) XXX_Merge ¶
func (m *MsgIncreaseCounter) XXX_Merge(src proto.Message)
func (*MsgIncreaseCounter) XXX_Size ¶
func (m *MsgIncreaseCounter) XXX_Size() int
func (*MsgIncreaseCounter) XXX_Unmarshal ¶
func (m *MsgIncreaseCounter) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface {
// IncreaseCount increments the counter by the specified amount.
IncreaseCount(context.Context, *MsgIncreaseCounter) (*MsgIncreaseCountResponse, error)
}
MsgServer is the server API for 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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryGetCountRequest ¶
type QueryGetCountRequest struct {
}
QueryGetCountRequest defines the request type for querying x/mock count.
func (*QueryGetCountRequest) Descriptor ¶
func (*QueryGetCountRequest) Descriptor() ([]byte, []int)
func (*QueryGetCountRequest) Marshal ¶
func (m *QueryGetCountRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetCountRequest) MarshalTo ¶
func (m *QueryGetCountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetCountRequest) MarshalToSizedBuffer ¶
func (m *QueryGetCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetCountRequest) ProtoMessage ¶
func (*QueryGetCountRequest) ProtoMessage()
func (*QueryGetCountRequest) Reset ¶
func (m *QueryGetCountRequest) Reset()
func (*QueryGetCountRequest) Size ¶
func (m *QueryGetCountRequest) Size() (n int)
func (*QueryGetCountRequest) String ¶
func (m *QueryGetCountRequest) String() string
func (*QueryGetCountRequest) Unmarshal ¶
func (m *QueryGetCountRequest) Unmarshal(dAtA []byte) error
func (*QueryGetCountRequest) XXX_DiscardUnknown ¶
func (m *QueryGetCountRequest) XXX_DiscardUnknown()
func (*QueryGetCountRequest) XXX_Marshal ¶
func (m *QueryGetCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetCountRequest) XXX_Merge ¶
func (m *QueryGetCountRequest) XXX_Merge(src proto.Message)
func (*QueryGetCountRequest) XXX_Size ¶
func (m *QueryGetCountRequest) XXX_Size() int
func (*QueryGetCountRequest) XXX_Unmarshal ¶
func (m *QueryGetCountRequest) XXX_Unmarshal(b []byte) error
type QueryGetCountResponse ¶
type QueryGetCountResponse struct {
TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
}
QueryGetCountResponse defines the response type for querying x/mock count.
func (*QueryGetCountResponse) Descriptor ¶
func (*QueryGetCountResponse) Descriptor() ([]byte, []int)
func (*QueryGetCountResponse) GetTotalCount ¶
func (m *QueryGetCountResponse) GetTotalCount() int64
func (*QueryGetCountResponse) Marshal ¶
func (m *QueryGetCountResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetCountResponse) MarshalTo ¶
func (m *QueryGetCountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetCountResponse) MarshalToSizedBuffer ¶
func (m *QueryGetCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetCountResponse) ProtoMessage ¶
func (*QueryGetCountResponse) ProtoMessage()
func (*QueryGetCountResponse) Reset ¶
func (m *QueryGetCountResponse) Reset()
func (*QueryGetCountResponse) Size ¶
func (m *QueryGetCountResponse) Size() (n int)
func (*QueryGetCountResponse) String ¶
func (m *QueryGetCountResponse) String() string
func (*QueryGetCountResponse) Unmarshal ¶
func (m *QueryGetCountResponse) Unmarshal(dAtA []byte) error
func (*QueryGetCountResponse) XXX_DiscardUnknown ¶
func (m *QueryGetCountResponse) XXX_DiscardUnknown()
func (*QueryGetCountResponse) XXX_Marshal ¶
func (m *QueryGetCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetCountResponse) XXX_Merge ¶
func (m *QueryGetCountResponse) XXX_Merge(src proto.Message)
func (*QueryGetCountResponse) XXX_Size ¶
func (m *QueryGetCountResponse) XXX_Size() int
func (*QueryGetCountResponse) XXX_Unmarshal ¶
func (m *QueryGetCountResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
// GetCount queries the parameters of x/Counter module.
GetCount(context.Context, *QueryGetCountRequest) (*QueryGetCountResponse, error)
}
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) IncreaseCount ¶
func (*UnimplementedMsgServer) IncreaseCount(ctx context.Context, req *MsgIncreaseCounter) (*MsgIncreaseCountResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetCount ¶
func (*UnimplementedQueryServer) GetCount(ctx context.Context, req *QueryGetCountRequest) (*QueryGetCountResponse, error)