Documentation
¶
Overview ¶
Package v1beta1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type Callback
- func (*Callback) Descriptor() ([]byte, []int)
- func (m *Callback) GetAddress() string
- func (m *Callback) GetGasLimit() uint64
- func (m *Callback) GetId() uint64
- func (m *Callback) Marshal() (dAtA []byte, err error)
- func (m *Callback) MarshalTo(dAtA []byte) (int, error)
- func (m *Callback) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Callback) ProtoMessage()
- func (m *Callback) Reset()
- func (m *Callback) Size() (n int)
- func (m *Callback) String() string
- func (m *Callback) Unmarshal(dAtA []byte) error
- func (m *Callback) XXX_DiscardUnknown()
- func (m *Callback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Callback) XXX_Merge(src proto.Message)
- func (m *Callback) XXX_Size() int
- func (m *Callback) XXX_Unmarshal(b []byte) error
- type CallbackParams
- func (*CallbackParams) Descriptor() ([]byte, []int)
- func (m *CallbackParams) GetAddress() string
- func (m *CallbackParams) GetGasLimit() uint64
- func (m *CallbackParams) Marshal() (dAtA []byte, err error)
- func (m *CallbackParams) MarshalTo(dAtA []byte) (int, error)
- func (m *CallbackParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CallbackParams) ProtoMessage()
- func (m *CallbackParams) Reset()
- func (m *CallbackParams) Size() (n int)
- func (m *CallbackParams) String() string
- func (m *CallbackParams) Unmarshal(dAtA []byte) error
- func (m *CallbackParams) XXX_DiscardUnknown()
- func (m *CallbackParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallbackParams) XXX_Merge(src proto.Message)
- func (m *CallbackParams) XXX_Size() int
- func (m *CallbackParams) XXX_Unmarshal(b []byte) error
- type CallbackResponse
- func (*CallbackResponse) Descriptor() ([]byte, []int)
- func (m *CallbackResponse) GetCallback() Callback
- func (m *CallbackResponse) GetResult() *CallbackResult
- func (m *CallbackResponse) Marshal() (dAtA []byte, err error)
- func (m *CallbackResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CallbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CallbackResponse) ProtoMessage()
- func (m *CallbackResponse) Reset()
- func (m *CallbackResponse) Size() (n int)
- func (m *CallbackResponse) String() string
- func (m *CallbackResponse) Unmarshal(dAtA []byte) error
- func (m *CallbackResponse) XXX_DiscardUnknown()
- func (m *CallbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallbackResponse) XXX_Merge(src proto.Message)
- func (m *CallbackResponse) XXX_Size() int
- func (m *CallbackResponse) XXX_Unmarshal(b []byte) error
- type CallbackResult
- func (*CallbackResult) Descriptor() ([]byte, []int)
- func (m *CallbackResult) GetFailReason() string
- func (m *CallbackResult) GetOutput() []byte
- func (m *CallbackResult) GetResult() isCallbackResult_Result
- func (m *CallbackResult) GetStatus() CallbackStatus
- func (m *CallbackResult) Marshal() (dAtA []byte, err error)
- func (m *CallbackResult) MarshalTo(dAtA []byte) (int, error)
- func (m *CallbackResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CallbackResult) ProtoMessage()
- func (m *CallbackResult) Reset()
- func (m *CallbackResult) Size() (n int)
- func (m *CallbackResult) String() string
- func (m *CallbackResult) Unmarshal(dAtA []byte) error
- func (m *CallbackResult) XXX_DiscardUnknown()
- func (m *CallbackResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallbackResult) XXX_Merge(src proto.Message)
- func (*CallbackResult) XXX_OneofWrappers() []interface{}
- func (m *CallbackResult) XXX_Size() int
- func (m *CallbackResult) XXX_Unmarshal(b []byte) error
- type CallbackResult_FailReason
- type CallbackResult_Output
- type CallbackStatus
- type ExtensionOptionsCallbacks
- func (*ExtensionOptionsCallbacks) Descriptor() ([]byte, []int)
- func (m *ExtensionOptionsCallbacks) Marshal() (dAtA []byte, err error)
- func (m *ExtensionOptionsCallbacks) MarshalTo(dAtA []byte) (int, error)
- func (m *ExtensionOptionsCallbacks) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExtensionOptionsCallbacks) ProtoMessage()
- func (m *ExtensionOptionsCallbacks) Reset()
- func (m *ExtensionOptionsCallbacks) Size() (n int)
- func (m *ExtensionOptionsCallbacks) String() string
- func (m *ExtensionOptionsCallbacks) Unmarshal(dAtA []byte) error
- func (m *ExtensionOptionsCallbacks) XXX_DiscardUnknown()
- func (m *ExtensionOptionsCallbacks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExtensionOptionsCallbacks) XXX_Merge(src proto.Message)
- func (m *ExtensionOptionsCallbacks) XXX_Size() int
- func (m *ExtensionOptionsCallbacks) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryCallbackByIdRequest
- func (*QueryCallbackByIdRequest) Descriptor() ([]byte, []int)
- func (m *QueryCallbackByIdRequest) GetId() uint64
- func (m *QueryCallbackByIdRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCallbackByIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCallbackByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCallbackByIdRequest) ProtoMessage()
- func (m *QueryCallbackByIdRequest) Reset()
- func (m *QueryCallbackByIdRequest) Size() (n int)
- func (m *QueryCallbackByIdRequest) String() string
- func (m *QueryCallbackByIdRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCallbackByIdRequest) XXX_DiscardUnknown()
- func (m *QueryCallbackByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCallbackByIdRequest) XXX_Merge(src proto.Message)
- func (m *QueryCallbackByIdRequest) XXX_Size() int
- func (m *QueryCallbackByIdRequest) XXX_Unmarshal(b []byte) error
- type QueryCallbackByIdResponse
- func (*QueryCallbackByIdResponse) Descriptor() ([]byte, []int)
- func (m *QueryCallbackByIdResponse) GetCallbackResponse() CallbackResponse
- func (m *QueryCallbackByIdResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCallbackByIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCallbackByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCallbackByIdResponse) ProtoMessage()
- func (m *QueryCallbackByIdResponse) Reset()
- func (m *QueryCallbackByIdResponse) Size() (n int)
- func (m *QueryCallbackByIdResponse) String() string
- func (m *QueryCallbackByIdResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCallbackByIdResponse) XXX_DiscardUnknown()
- func (m *QueryCallbackByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCallbackByIdResponse) XXX_Merge(src proto.Message)
- func (m *QueryCallbackByIdResponse) XXX_Size() int
- func (m *QueryCallbackByIdResponse) XXX_Unmarshal(b []byte) error
- type QueryCallbacksRequest
- func (*QueryCallbacksRequest) Descriptor() ([]byte, []int)
- func (m *QueryCallbacksRequest) GetPagination() *query.PageRequest
- func (m *QueryCallbacksRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCallbacksRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCallbacksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCallbacksRequest) ProtoMessage()
- func (m *QueryCallbacksRequest) Reset()
- func (m *QueryCallbacksRequest) Size() (n int)
- func (m *QueryCallbacksRequest) String() string
- func (m *QueryCallbacksRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCallbacksRequest) XXX_DiscardUnknown()
- func (m *QueryCallbacksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCallbacksRequest) XXX_Merge(src proto.Message)
- func (m *QueryCallbacksRequest) XXX_Size() int
- func (m *QueryCallbacksRequest) XXX_Unmarshal(b []byte) error
- type QueryCallbacksResponse
- func (*QueryCallbacksResponse) Descriptor() ([]byte, []int)
- func (m *QueryCallbacksResponse) GetCallbacks() []CallbackResponse
- func (m *QueryCallbacksResponse) GetPagination() *query.PageResponse
- func (m *QueryCallbacksResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCallbacksResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCallbacksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCallbacksResponse) ProtoMessage()
- func (m *QueryCallbacksResponse) Reset()
- func (m *QueryCallbacksResponse) Size() (n int)
- func (m *QueryCallbacksResponse) String() string
- func (m *QueryCallbacksResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCallbacksResponse) XXX_DiscardUnknown()
- func (m *QueryCallbacksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCallbacksResponse) XXX_Merge(src proto.Message)
- func (m *QueryCallbacksResponse) XXX_Size() int
- func (m *QueryCallbacksResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) CallbackById(ctx context.Context, req *QueryCallbackByIdRequest) (*QueryCallbackByIdResponse, error)
- func (*UnimplementedQueryServer) Callbacks(ctx context.Context, req *QueryCallbacksRequest) (*QueryCallbacksResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( // ModuleName defines the module name. ModuleName = "sched" // StoreKey defines the primary module store key. StoreKey = ModuleName // MemStoreKey defines the in-memory store key. MemStoreKey = "mem_sched" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index.
Variables ¶
var ( ErrInvalidLengthCallback = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCallback = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCallback = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrCallbackAlreadyHasResult = sdkerrors.Register(ModuleName, 1101, "callback already has result") ErrOutOfMaxGas = sdkerrors.Register(ModuleName, 1102, "gas estimation more than max gas for callback") ErrInvalidCallback = sdkerrors.Register(ModuleName, 1103, "invalid callback") ErrInsufficientFunds = sdkerrors.Register(ModuleName, 1104, "not enough funds to pay fee") ErrInvalidGasLimit = sdkerrors.Register(ModuleName, 1105, "invalid gas limit") )
x/sched module sentinel errors.
var ( ErrInvalidLengthExtension = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowExtension = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupExtension = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var CallbackStatus_name = map[int32]string{
0: "CALLBACK_STATUS_UNSPECIFIED",
1: "CALLBACK_STATUS_SUCCEED",
2: "CALLBACK_STATUS_FAILED",
}
var CallbackStatus_value = map[string]int32{
"CALLBACK_STATUS_UNSPECIFIED": 0,
"CALLBACK_STATUS_SUCCEED": 1,
"CALLBACK_STATUS_FAILED": 2,
}
var Msg_serviceDesc = _Msg_serviceDesc
var ParamsKey = []byte("p_sched")
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module.
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI
NewAccountWithAddress(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
SetAccount(ctx context.Context, acc sdk.AccountI)
}
AccountKeeper defines the expected interface for the Account module.
type BankKeeper ¶
type BankKeeper interface {
HasBalance(context.Context, sdk.AccAddress, sdk.Coin) bool
SendCoins(ctx context.Context, from, to sdk.AccAddress, amt sdk.Coins) error
}
BankKeeper defines the expected interface for the Bank module.
type Callback ¶
type Callback struct {
// Unique ID of the Callback.
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Callback address.
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
// The limit of gas for callback execution.
GasLimit uint64 `protobuf:"varint,3,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
}
Task defines a task that will be executed asynchronously. Validators will be able to submit the proposed result of the Task execution. Other validators will then be able to vote on the validity of the proposed result.
func (*Callback) Descriptor ¶
func (*Callback) GetAddress ¶
func (*Callback) GetGasLimit ¶
func (*Callback) MarshalToSizedBuffer ¶
func (*Callback) ProtoMessage ¶
func (*Callback) ProtoMessage()
func (*Callback) XXX_DiscardUnknown ¶
func (m *Callback) XXX_DiscardUnknown()
func (*Callback) XXX_Marshal ¶
func (*Callback) XXX_Unmarshal ¶
type CallbackParams ¶
type CallbackParams struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
GasLimit uint64 `protobuf:"varint,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
}
Used by other modules to set callback.
func (*CallbackParams) Descriptor ¶
func (*CallbackParams) Descriptor() ([]byte, []int)
func (*CallbackParams) GetAddress ¶
func (m *CallbackParams) GetAddress() string
func (*CallbackParams) GetGasLimit ¶
func (m *CallbackParams) GetGasLimit() uint64
func (*CallbackParams) Marshal ¶
func (m *CallbackParams) Marshal() (dAtA []byte, err error)
func (*CallbackParams) MarshalToSizedBuffer ¶
func (m *CallbackParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CallbackParams) ProtoMessage ¶
func (*CallbackParams) ProtoMessage()
func (*CallbackParams) Reset ¶
func (m *CallbackParams) Reset()
func (*CallbackParams) Size ¶
func (m *CallbackParams) Size() (n int)
func (*CallbackParams) String ¶
func (m *CallbackParams) String() string
func (*CallbackParams) Unmarshal ¶
func (m *CallbackParams) Unmarshal(dAtA []byte) error
func (*CallbackParams) XXX_DiscardUnknown ¶
func (m *CallbackParams) XXX_DiscardUnknown()
func (*CallbackParams) XXX_Marshal ¶
func (m *CallbackParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallbackParams) XXX_Merge ¶
func (m *CallbackParams) XXX_Merge(src proto.Message)
func (*CallbackParams) XXX_Size ¶
func (m *CallbackParams) XXX_Size() int
func (*CallbackParams) XXX_Unmarshal ¶
func (m *CallbackParams) XXX_Unmarshal(b []byte) error
type CallbackResponse ¶
type CallbackResponse struct {
Callback Callback `protobuf:"bytes,1,opt,name=callback,proto3" json:"callback"`
Result *CallbackResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
}
func (*CallbackResponse) Descriptor ¶
func (*CallbackResponse) Descriptor() ([]byte, []int)
func (*CallbackResponse) GetCallback ¶
func (m *CallbackResponse) GetCallback() Callback
func (*CallbackResponse) GetResult ¶
func (m *CallbackResponse) GetResult() *CallbackResult
func (*CallbackResponse) Marshal ¶
func (m *CallbackResponse) Marshal() (dAtA []byte, err error)
func (*CallbackResponse) MarshalToSizedBuffer ¶
func (m *CallbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CallbackResponse) ProtoMessage ¶
func (*CallbackResponse) ProtoMessage()
func (*CallbackResponse) Reset ¶
func (m *CallbackResponse) Reset()
func (*CallbackResponse) Size ¶
func (m *CallbackResponse) Size() (n int)
func (*CallbackResponse) String ¶
func (m *CallbackResponse) String() string
func (*CallbackResponse) Unmarshal ¶
func (m *CallbackResponse) Unmarshal(dAtA []byte) error
func (*CallbackResponse) XXX_DiscardUnknown ¶
func (m *CallbackResponse) XXX_DiscardUnknown()
func (*CallbackResponse) XXX_Marshal ¶
func (m *CallbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallbackResponse) XXX_Merge ¶
func (m *CallbackResponse) XXX_Merge(src proto.Message)
func (*CallbackResponse) XXX_Size ¶
func (m *CallbackResponse) XXX_Size() int
func (*CallbackResponse) XXX_Unmarshal ¶
func (m *CallbackResponse) XXX_Unmarshal(b []byte) error
type CallbackResult ¶
type CallbackResult struct {
// The result status.
Status CallbackStatus `protobuf:"varint,1,opt,name=status,proto3,enum=warden.sched.v1beta1.CallbackStatus" json:"status,omitempty"`
// Result of the callback, depending on the status:
//
// If unspecified, this field is empty.
// If succeed, this field contains the callback output.
// If failed, this field contains the reason.
//
// Types that are valid to be assigned to Result:
//
// *CallbackResult_Output
// *CallbackResult_FailReason
Result isCallbackResult_Result `protobuf_oneof:"result"`
}
func (*CallbackResult) Descriptor ¶
func (*CallbackResult) Descriptor() ([]byte, []int)
func (*CallbackResult) GetFailReason ¶
func (m *CallbackResult) GetFailReason() string
func (*CallbackResult) GetOutput ¶
func (m *CallbackResult) GetOutput() []byte
func (*CallbackResult) GetResult ¶
func (m *CallbackResult) GetResult() isCallbackResult_Result
func (*CallbackResult) GetStatus ¶
func (m *CallbackResult) GetStatus() CallbackStatus
func (*CallbackResult) Marshal ¶
func (m *CallbackResult) Marshal() (dAtA []byte, err error)
func (*CallbackResult) MarshalToSizedBuffer ¶
func (m *CallbackResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CallbackResult) ProtoMessage ¶
func (*CallbackResult) ProtoMessage()
func (*CallbackResult) Reset ¶
func (m *CallbackResult) Reset()
func (*CallbackResult) Size ¶
func (m *CallbackResult) Size() (n int)
func (*CallbackResult) String ¶
func (m *CallbackResult) String() string
func (*CallbackResult) Unmarshal ¶
func (m *CallbackResult) Unmarshal(dAtA []byte) error
func (*CallbackResult) XXX_DiscardUnknown ¶
func (m *CallbackResult) XXX_DiscardUnknown()
func (*CallbackResult) XXX_Marshal ¶
func (m *CallbackResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallbackResult) XXX_Merge ¶
func (m *CallbackResult) XXX_Merge(src proto.Message)
func (*CallbackResult) XXX_OneofWrappers ¶
func (*CallbackResult) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CallbackResult) XXX_Size ¶
func (m *CallbackResult) XXX_Size() int
func (*CallbackResult) XXX_Unmarshal ¶
func (m *CallbackResult) XXX_Unmarshal(b []byte) error
type CallbackResult_FailReason ¶
type CallbackResult_FailReason struct {
FailReason string `protobuf:"bytes,7,opt,name=fail_reason,json=failReason,proto3,oneof" json:"fail_reason,omitempty"`
}
func (*CallbackResult_FailReason) MarshalTo ¶
func (m *CallbackResult_FailReason) MarshalTo(dAtA []byte) (int, error)
func (*CallbackResult_FailReason) MarshalToSizedBuffer ¶
func (m *CallbackResult_FailReason) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CallbackResult_FailReason) Size ¶
func (m *CallbackResult_FailReason) Size() (n int)
type CallbackResult_Output ¶
type CallbackResult_Output struct {
Output []byte `protobuf:"bytes,2,opt,name=output,proto3,oneof" json:"output,omitempty"`
}
func (*CallbackResult_Output) MarshalTo ¶
func (m *CallbackResult_Output) MarshalTo(dAtA []byte) (int, error)
func (*CallbackResult_Output) MarshalToSizedBuffer ¶
func (m *CallbackResult_Output) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CallbackResult_Output) Size ¶
func (m *CallbackResult_Output) Size() (n int)
type CallbackStatus ¶
type CallbackStatus int32
const ( // Unspecified callback status. CallbackStatus_CALLBACK_STATUS_UNSPECIFIED CallbackStatus = 0 // Indicates that the callback execution was successful. CallbackStatus_CALLBACK_STATUS_SUCCEED CallbackStatus = 1 // Indicates that the callback execution failed. CallbackStatus_CALLBACK_STATUS_FAILED CallbackStatus = 2 )
func (CallbackStatus) EnumDescriptor ¶
func (CallbackStatus) EnumDescriptor() ([]byte, []int)
func (CallbackStatus) String ¶
func (x CallbackStatus) String() string
type ExtensionOptionsCallbacks ¶
type ExtensionOptionsCallbacks struct {
}
func (*ExtensionOptionsCallbacks) Descriptor ¶
func (*ExtensionOptionsCallbacks) Descriptor() ([]byte, []int)
func (*ExtensionOptionsCallbacks) Marshal ¶
func (m *ExtensionOptionsCallbacks) Marshal() (dAtA []byte, err error)
func (*ExtensionOptionsCallbacks) MarshalTo ¶
func (m *ExtensionOptionsCallbacks) MarshalTo(dAtA []byte) (int, error)
func (*ExtensionOptionsCallbacks) MarshalToSizedBuffer ¶
func (m *ExtensionOptionsCallbacks) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExtensionOptionsCallbacks) ProtoMessage ¶
func (*ExtensionOptionsCallbacks) ProtoMessage()
func (*ExtensionOptionsCallbacks) Reset ¶
func (m *ExtensionOptionsCallbacks) Reset()
func (*ExtensionOptionsCallbacks) Size ¶
func (m *ExtensionOptionsCallbacks) Size() (n int)
func (*ExtensionOptionsCallbacks) String ¶
func (m *ExtensionOptionsCallbacks) String() string
func (*ExtensionOptionsCallbacks) Unmarshal ¶
func (m *ExtensionOptionsCallbacks) Unmarshal(dAtA []byte) error
func (*ExtensionOptionsCallbacks) XXX_DiscardUnknown ¶
func (m *ExtensionOptionsCallbacks) XXX_DiscardUnknown()
func (*ExtensionOptionsCallbacks) XXX_Marshal ¶
func (m *ExtensionOptionsCallbacks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExtensionOptionsCallbacks) XXX_Merge ¶
func (m *ExtensionOptionsCallbacks) XXX_Merge(src proto.Message)
func (*ExtensionOptionsCallbacks) XXX_Size ¶
func (m *ExtensionOptionsCallbacks) XXX_Size() int
func (*ExtensionOptionsCallbacks) XXX_Unmarshal ¶
func (m *ExtensionOptionsCallbacks) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
// params defines all the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
GenesisState defines the sched module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgServer ¶
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface {
Get(context.Context, []byte, interface{})
Set(context.Context, []byte, interface{})
}
ParamSubspace defines the expected Subspace interface for parameters.
type Params ¶
type Params struct {
}
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryCallbackByIdRequest ¶
type QueryCallbackByIdRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryCallbackByIdRequest) Descriptor ¶
func (*QueryCallbackByIdRequest) Descriptor() ([]byte, []int)
func (*QueryCallbackByIdRequest) GetId ¶
func (m *QueryCallbackByIdRequest) GetId() uint64
func (*QueryCallbackByIdRequest) Marshal ¶
func (m *QueryCallbackByIdRequest) Marshal() (dAtA []byte, err error)
func (*QueryCallbackByIdRequest) MarshalTo ¶
func (m *QueryCallbackByIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCallbackByIdRequest) MarshalToSizedBuffer ¶
func (m *QueryCallbackByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCallbackByIdRequest) ProtoMessage ¶
func (*QueryCallbackByIdRequest) ProtoMessage()
func (*QueryCallbackByIdRequest) Reset ¶
func (m *QueryCallbackByIdRequest) Reset()
func (*QueryCallbackByIdRequest) Size ¶
func (m *QueryCallbackByIdRequest) Size() (n int)
func (*QueryCallbackByIdRequest) String ¶
func (m *QueryCallbackByIdRequest) String() string
func (*QueryCallbackByIdRequest) Unmarshal ¶
func (m *QueryCallbackByIdRequest) Unmarshal(dAtA []byte) error
func (*QueryCallbackByIdRequest) XXX_DiscardUnknown ¶
func (m *QueryCallbackByIdRequest) XXX_DiscardUnknown()
func (*QueryCallbackByIdRequest) XXX_Marshal ¶
func (m *QueryCallbackByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCallbackByIdRequest) XXX_Merge ¶
func (m *QueryCallbackByIdRequest) XXX_Merge(src proto.Message)
func (*QueryCallbackByIdRequest) XXX_Size ¶
func (m *QueryCallbackByIdRequest) XXX_Size() int
func (*QueryCallbackByIdRequest) XXX_Unmarshal ¶
func (m *QueryCallbackByIdRequest) XXX_Unmarshal(b []byte) error
type QueryCallbackByIdResponse ¶
type QueryCallbackByIdResponse struct {
CallbackResponse CallbackResponse `protobuf:"bytes,1,opt,name=callback_response,json=callbackResponse,proto3" json:"callback_response"`
}
func (*QueryCallbackByIdResponse) Descriptor ¶
func (*QueryCallbackByIdResponse) Descriptor() ([]byte, []int)
func (*QueryCallbackByIdResponse) GetCallbackResponse ¶
func (m *QueryCallbackByIdResponse) GetCallbackResponse() CallbackResponse
func (*QueryCallbackByIdResponse) Marshal ¶
func (m *QueryCallbackByIdResponse) Marshal() (dAtA []byte, err error)
func (*QueryCallbackByIdResponse) MarshalTo ¶
func (m *QueryCallbackByIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCallbackByIdResponse) MarshalToSizedBuffer ¶
func (m *QueryCallbackByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCallbackByIdResponse) ProtoMessage ¶
func (*QueryCallbackByIdResponse) ProtoMessage()
func (*QueryCallbackByIdResponse) Reset ¶
func (m *QueryCallbackByIdResponse) Reset()
func (*QueryCallbackByIdResponse) Size ¶
func (m *QueryCallbackByIdResponse) Size() (n int)
func (*QueryCallbackByIdResponse) String ¶
func (m *QueryCallbackByIdResponse) String() string
func (*QueryCallbackByIdResponse) Unmarshal ¶
func (m *QueryCallbackByIdResponse) Unmarshal(dAtA []byte) error
func (*QueryCallbackByIdResponse) XXX_DiscardUnknown ¶
func (m *QueryCallbackByIdResponse) XXX_DiscardUnknown()
func (*QueryCallbackByIdResponse) XXX_Marshal ¶
func (m *QueryCallbackByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCallbackByIdResponse) XXX_Merge ¶
func (m *QueryCallbackByIdResponse) XXX_Merge(src proto.Message)
func (*QueryCallbackByIdResponse) XXX_Size ¶
func (m *QueryCallbackByIdResponse) XXX_Size() int
func (*QueryCallbackByIdResponse) XXX_Unmarshal ¶
func (m *QueryCallbackByIdResponse) XXX_Unmarshal(b []byte) error
type QueryCallbacksRequest ¶
type QueryCallbacksRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryCallbacksRequest) Descriptor ¶
func (*QueryCallbacksRequest) Descriptor() ([]byte, []int)
func (*QueryCallbacksRequest) GetPagination ¶
func (m *QueryCallbacksRequest) GetPagination() *query.PageRequest
func (*QueryCallbacksRequest) Marshal ¶
func (m *QueryCallbacksRequest) Marshal() (dAtA []byte, err error)
func (*QueryCallbacksRequest) MarshalTo ¶
func (m *QueryCallbacksRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCallbacksRequest) MarshalToSizedBuffer ¶
func (m *QueryCallbacksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCallbacksRequest) ProtoMessage ¶
func (*QueryCallbacksRequest) ProtoMessage()
func (*QueryCallbacksRequest) Reset ¶
func (m *QueryCallbacksRequest) Reset()
func (*QueryCallbacksRequest) Size ¶
func (m *QueryCallbacksRequest) Size() (n int)
func (*QueryCallbacksRequest) String ¶
func (m *QueryCallbacksRequest) String() string
func (*QueryCallbacksRequest) Unmarshal ¶
func (m *QueryCallbacksRequest) Unmarshal(dAtA []byte) error
func (*QueryCallbacksRequest) XXX_DiscardUnknown ¶
func (m *QueryCallbacksRequest) XXX_DiscardUnknown()
func (*QueryCallbacksRequest) XXX_Marshal ¶
func (m *QueryCallbacksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCallbacksRequest) XXX_Merge ¶
func (m *QueryCallbacksRequest) XXX_Merge(src proto.Message)
func (*QueryCallbacksRequest) XXX_Size ¶
func (m *QueryCallbacksRequest) XXX_Size() int
func (*QueryCallbacksRequest) XXX_Unmarshal ¶
func (m *QueryCallbacksRequest) XXX_Unmarshal(b []byte) error
type QueryCallbacksResponse ¶
type QueryCallbacksResponse struct {
Pagination *query.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
Callbacks []CallbackResponse `protobuf:"bytes,2,rep,name=callbacks,proto3" json:"callbacks"`
}
func (*QueryCallbacksResponse) Descriptor ¶
func (*QueryCallbacksResponse) Descriptor() ([]byte, []int)
func (*QueryCallbacksResponse) GetCallbacks ¶
func (m *QueryCallbacksResponse) GetCallbacks() []CallbackResponse
func (*QueryCallbacksResponse) GetPagination ¶
func (m *QueryCallbacksResponse) GetPagination() *query.PageResponse
func (*QueryCallbacksResponse) Marshal ¶
func (m *QueryCallbacksResponse) Marshal() (dAtA []byte, err error)
func (*QueryCallbacksResponse) MarshalTo ¶
func (m *QueryCallbacksResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCallbacksResponse) MarshalToSizedBuffer ¶
func (m *QueryCallbacksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCallbacksResponse) ProtoMessage ¶
func (*QueryCallbacksResponse) ProtoMessage()
func (*QueryCallbacksResponse) Reset ¶
func (m *QueryCallbacksResponse) Reset()
func (*QueryCallbacksResponse) Size ¶
func (m *QueryCallbacksResponse) Size() (n int)
func (*QueryCallbacksResponse) String ¶
func (m *QueryCallbacksResponse) String() string
func (*QueryCallbacksResponse) Unmarshal ¶
func (m *QueryCallbacksResponse) Unmarshal(dAtA []byte) error
func (*QueryCallbacksResponse) XXX_DiscardUnknown ¶
func (m *QueryCallbacksResponse) XXX_DiscardUnknown()
func (*QueryCallbacksResponse) XXX_Marshal ¶
func (m *QueryCallbacksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCallbacksResponse) XXX_Merge ¶
func (m *QueryCallbacksResponse) XXX_Merge(src proto.Message)
func (*QueryCallbacksResponse) XXX_Size ¶
func (m *QueryCallbacksResponse) XXX_Size() int
func (*QueryCallbacksResponse) XXX_Unmarshal ¶
func (m *QueryCallbacksResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// Queries a list of Callbacks.
Callbacks(ctx context.Context, in *QueryCallbacksRequest, opts ...grpc.CallOption) (*QueryCallbacksResponse, error)
// Queries a Callback by its id.
CallbackById(ctx context.Context, in *QueryCallbackByIdRequest, opts ...grpc.CallOption) (*QueryCallbackByIdResponse, 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 QueryParamsRequest ¶
type QueryParamsRequest struct {
}
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
// params holds all the parameters of this module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// Queries a list of Callbacks.
Callbacks(context.Context, *QueryCallbacksRequest) (*QueryCallbacksResponse, error)
// Queries a Callback by its id.
CallbackById(context.Context, *QueryCallbackByIdRequest) (*QueryCallbackByIdResponse, 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) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) CallbackById ¶
func (*UnimplementedQueryServer) CallbackById(ctx context.Context, req *QueryCallbackByIdRequest) (*QueryCallbackByIdResponse, error)
func (*UnimplementedQueryServer) Callbacks ¶
func (*UnimplementedQueryServer) Callbacks(ctx context.Context, req *QueryCallbacksRequest) (*QueryCallbacksResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)