types

package
v0.52.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName defines the name of the x/consensus module.
	ModuleName = "counter"

	// StoreKey defines the module's store key.
	StoreKey = ModuleName
)

Variables

View Source
var (
	ErrInvalidLengthModule        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModule          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModule = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func RegisterInterfaces

func RegisterInterfaces(registrar registry.InterfaceRegistrar)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type Module

type Module struct {
	// authority defines the custom module authority. If not set, defaults to the governance module.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}

Module is the config object of the counter module.

func (*Module) Descriptor

func (*Module) Descriptor() ([]byte, []int)

func (*Module) GetAuthority

func (m *Module) GetAuthority() string

func (*Module) Marshal

func (m *Module) Marshal() (dAtA []byte, err error)

func (*Module) MarshalTo

func (m *Module) MarshalTo(dAtA []byte) (int, error)

func (*Module) MarshalToSizedBuffer

func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) Reset

func (m *Module) Reset()

func (*Module) Size

func (m *Module) Size() (n int)

func (*Module) String

func (m *Module) String() string

func (*Module) Unmarshal

func (m *Module) Unmarshal(dAtA []byte) error

func (*Module) XXX_DiscardUnknown

func (m *Module) XXX_DiscardUnknown()

func (*Module) XXX_Marshal

func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Module) XXX_Merge

func (m *Module) XXX_Merge(src proto.Message)

func (*Module) XXX_Size

func (m *Module) XXX_Size() int

func (*Module) XXX_Unmarshal

func (m *Module) XXX_Unmarshal(b []byte) error

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetCount

Jump to

Keyboard shortcuts

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