migration

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixDposBalance added in v1.5.5

type FixDposBalance struct {
	// contains filtered or unexported fields
}

FixDposBalance is a migration that removes the Sender attribute from the Dag struct.

func (*FixDposBalance) Apply added in v1.5.5

func (m *FixDposBalance) Apply(s *pebble.Storage) error

Apply is the implementation of the Migration interface for the FixDposBalance.

func (*FixDposBalance) GetId added in v1.5.5

func (m *FixDposBalance) GetId() string

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(s *pebble.Storage, blockchain_ws string) *Manager

func (*Manager) ApplyAll

func (m *Manager) ApplyAll() (err error)

func (*Manager) IsApplied

func (m *Manager) IsApplied(migration Migration) bool

func (*Manager) RegisterMigration

func (m *Manager) RegisterMigration(migration Migration)

type Migration

type Migration interface {
	GetId() string
	Apply(s *pebble.Storage) error
}

Jump to

Keyboard shortcuts

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