Documentation ¶
Index ¶
- Constants
- type Store
- func (s *Store) Close() error
- func (s *Store) CreateSnapshot(name string) error
- func (s *Store) DB() *sql.DB
- func (s *Store) GetBytes(ctx context.Context, store string, key []byte) ([]byte, error)
- func (s *Store) GetBytesAtVersion(_ context.Context, store string, key []byte, version uint64) ([]byte, error)
- func (s *Store) LoadSnapshot(name string) error
- func (s *Store) RollbackToBlockHeight(height uint64) error
- func (s *Store) SetBytes(ctx context.Context, store string, key []byte, value []byte) error
- func (s *Store) SetBytesWithVersion(_ context.Context, store string, key []byte, value []byte, version uint64) error
- func (s *Store) SetBytesWithVersionAndHeight(_ context.Context, store string, key []byte, value []byte, ...) error
- func (s *Store) Snapshots() (snapshots []string, err error)
- func (s *Store) SupportSnapshotsWithCurrentConfig() bool
Constants ¶
View Source
const InMemory = ":memory:"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct { storage.DefaultStore // contains filtered or unexported fields }
Store implements the Store interface
func (*Store) CreateSnapshot ¶ added in v0.46.0
func (*Store) GetBytesAtVersion ¶
func (*Store) LoadSnapshot ¶ added in v0.46.0
func (*Store) RollbackToBlockHeight ¶ added in v0.46.0
func (*Store) SetBytesWithVersion ¶
func (*Store) SetBytesWithVersionAndHeight ¶ added in v1.0.0
func (*Store) SupportSnapshotsWithCurrentConfig ¶
Click to show internal directories.
Click to hide internal directories.