Documentation ¶
Index ¶
- Constants
- func EndBlocker(ctx sdk.Context, k *keeper.Keeper, h TaskExecutionResponseHandler)
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) ConsensusVersion() uint64
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, bz json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) IsAppModule()
- func (AppModule) Name() string
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (am *AppModule) SetAsyncTaskRspHandler(asyncTaskRspHandler TaskExecutionResponseHandler)
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (b AppModuleBasic) GetQueryCmd() *cobra.Command
- func (b AppModuleBasic) GetTxCmd() *cobra.Command
- func (AppModuleBasic) Name() string
- func (b AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, serveMux *runtime.ServeMux)
- func (b AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func (b AppModuleBasic) RegisterLegacyAminoCodec(amino *codec.LegacyAmino)
- func (b AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
- type TaskExecutionResponseHandler
- type TaskExecutionResponseHandlerFn
Constants ¶
const ConsensusVersion = 1
ConsensusVersion defines the module's consensus version.
Variables ¶
This section is empty.
Functions ¶
func EndBlocker ¶
func EndBlocker(ctx sdk.Context, k *keeper.Keeper, h TaskExecutionResponseHandler)
EndBlocker is called after every block
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module interface
func NewAppModule ¶
NewAppModule constructor with defaults
func NewAppModuleX ¶
NewAppModuleX extended constructor
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
BeginBlock executed before every block
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock executed after every block. It returns no validator updates.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the exported genesis state as raw bytes for the mesh-security
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, bz json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the mesh-security module. It returns no validator updates.
func (AppModule) IsAppModule ¶
func (am AppModule) IsAppModule()
IsAppModule implements the appmodule.AppModule interface.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the bank module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the module's invariants.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers module services.
func (*AppModule) SetAsyncTaskRspHandler ¶
func (am *AppModule) SetAsyncTaskRspHandler(asyncTaskRspHandler TaskExecutionResponseHandler)
SetAsyncTaskRspHandler set custom handler
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the mesh-security module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the mesh-security module.
func (AppModuleBasic) GetQueryCmd ¶
func (b AppModuleBasic) GetQueryCmd() *cobra.Command
GetQueryCmd returns no root query command for the mesh-security module.
func (AppModuleBasic) GetTxCmd ¶
func (b AppModuleBasic) GetTxCmd() *cobra.Command
GetTxCmd returns the root tx command for the mesh-security module.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns the meshsecurity module's name.
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (b AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, serveMux *runtime.ServeMux)
func (AppModuleBasic) RegisterInterfaces ¶
func (b AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces implements InterfaceModule
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (b AppModuleBasic) RegisterLegacyAminoCodec(amino *codec.LegacyAmino)
func (AppModuleBasic) ValidateGenesis ¶
func (b AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the mesh-security module.
type TaskExecutionResponseHandler ¶
type TaskExecutionResponseHandler interface {
Handle(ctx sdk.Context, e keeper.ExecResult)
}
TaskExecutionResponseHandler is an extension point for custom implementations
type TaskExecutionResponseHandlerFn ¶
type TaskExecutionResponseHandlerFn func(ctx sdk.Context, e keeper.ExecResult)
TaskExecutionResponseHandlerFn helper type that implements TaskExecutionResponseHandler
func DefaultExecutionResponseHandler ¶
func DefaultExecutionResponseHandler() TaskExecutionResponseHandlerFn
DefaultExecutionResponseHandler default implementation that panics on reschedule errors but otherwise logs only TODO: revisit, is this a good default?
func PanicOnErrorExecutionResponseHandler ¶
func PanicOnErrorExecutionResponseHandler() TaskExecutionResponseHandlerFn
PanicOnErrorExecutionResponseHandler is an alternative TaskExecutionResponseHandler implementation that always panics on errors
func (TaskExecutionResponseHandlerFn) Handle ¶
func (h TaskExecutionResponseHandlerFn) Handle(ctx sdk.Context, e keeper.ExecResult)