Documentation ¶
Index ¶
- Constants
- Variables
- type Module
- func (m *Module) AutoMigrate() error
- func (m *Module) ExtractEvent(ctx context.Context, block *tmctypes.ResultBlock, txHash common.Hash, ...) (interface{}, error)
- func (m *Module) HandleEvent(ctx context.Context, block *tmctypes.ResultBlock, txHash common.Hash, ...) error
- func (m *Module) Name() string
- func (m *Module) PrepareTables() error
Constants ¶
View Source
const (
SPExitRelatedEventsModuleName = "sp_exit_events"
)
Variables ¶
View Source
var ( EventMigrationBucket = proto.MessageName(&storagetypes.EventMigrationBucket{}) EventCompleteMigrationBucket = proto.MessageName(&storagetypes.EventCompleteMigrationBucket{}) EventCancelMigrationBucket = proto.MessageName(&storagetypes.EventCancelMigrationBucket{}) EventSwapOut = proto.MessageName(&vgtypes.EventSwapOut{}) EventCompleteSwapOut = proto.MessageName(&vgtypes.EventCompleteSwapOut{}) EventCancelSwapOut = proto.MessageName(&vgtypes.EventCancelSwapOut{}) EventSpExit = proto.MessageName(&vgtypes.EventStorageProviderExit{}) EventCompleteSpExit = proto.MessageName(&vgtypes.EventCompleteStorageProviderExit{}) )
View Source
var SpExitEvents = map[string]bool{ EventMigrationBucket: true, EventCompleteMigrationBucket: true, EventCancelMigrationBucket: true, EventSwapOut: true, EventCompleteSwapOut: true, EventCancelSwapOut: true, EventSpExit: true, EventCompleteSpExit: true, }
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) AutoMigrate ¶
func (*Module) ExtractEvent ¶
func (*Module) HandleEvent ¶
func (*Module) PrepareTables ¶
Click to show internal directories.
Click to hide internal directories.