Documentation
¶
Index ¶
- Constants
- func ProvideModule(in Input) (appmodule.AppModule, error)
- type AppModule
- func (a *AppModule) DefaultGenesis() json.RawMessage
- func (a *AppModule) ExportGenesis(context.Context) (json.RawMessage, error)
- func (a *AppModule) GetTxCmd() *cobra.Command
- func (a *AppModule) InitGenesis(ctx context.Context, _ json.RawMessage) error
- func (a *AppModule) IsAppModule()
- func (a *AppModule) IsOnePerModuleType()
- func (a *AppModule) RegisterGRPCGatewayRoutes(client.Context, *runtime.ServeMux)
- func (a *AppModule) RegisterInterfaces(registrar registry.InterfaceRegistrar)
- func (a *AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error
- func (a *AppModule) ValidateGenesis(data json.RawMessage) error
- type Input
- type KVServiceMap
- type Keeper
- type StoreKeyRegistrar
Constants ¶
View Source
const (
ModuleName = "benchmark"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppModule ¶
type AppModule struct {
// contains filtered or unexported fields
}
func NewAppModule ¶
func NewAppModule( genesisParams *modulev1.GeneratorParams, storeKeys []string, kvMap KVServiceMap, logger log.Logger, ) *AppModule
func (*AppModule) DefaultGenesis ¶
func (a *AppModule) DefaultGenesis() json.RawMessage
DefaultGenesis implements appmodulev2.HasGenesis.
func (*AppModule) ExportGenesis ¶
ExportGenesis implements appmodulev2.HasGenesis.
func (*AppModule) InitGenesis ¶
InitGenesis implements appmodulev2.HasGenesis.
func (*AppModule) IsAppModule ¶
func (a *AppModule) IsAppModule()
func (*AppModule) IsOnePerModuleType ¶
func (a *AppModule) IsOnePerModuleType()
func (*AppModule) RegisterGRPCGatewayRoutes ¶
func (*AppModule) RegisterInterfaces ¶
func (a *AppModule) RegisterInterfaces(registrar registry.InterfaceRegistrar)
func (*AppModule) RegisterServices ¶
func (a *AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error
RegisterServices registers module services.
func (*AppModule) ValidateGenesis ¶
func (a *AppModule) ValidateGenesis(data json.RawMessage) error
ValidateGenesis implements appmodulev2.HasGenesis.
type Input ¶
type Input struct { depinject.In Logger log.Logger Cfg *modulev1.Module Registrar StoreKeyRegistrar `optional:"true"` StoreFactory store.KVStoreServiceFactory }
type KVServiceMap ¶
type KVServiceMap map[string]store.KVStoreService
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(kvMap KVServiceMap) *Keeper
func (*Keeper) LoadTest ¶
func (k *Keeper) LoadTest(ctx context.Context, msg *benchmark.MsgLoadTest) (*benchmark.MsgLoadTestResponse, error)
type StoreKeyRegistrar ¶
type StoreKeyRegistrar interface {
RegisterKey(string)
}
Click to show internal directories.
Click to hide internal directories.