file

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0, UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventStoreType = "file"
	Path           = "path"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TxEventStore

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

TxEventStore is the implementation of a transaction event store that outputs to the local filesystem

func NewTxEventStore

func NewTxEventStore(cfg *storetypes.Config) (*TxEventStore, error)

NewTxEventStore creates a new file-based tx event store

func (*TxEventStore) Append

func (t *TxEventStore) Append(tx types.TxResult) error

Append marshals the transaction using amino, and writes it to the disk

func (*TxEventStore) GetType

func (t *TxEventStore) GetType() string

GetType returns the file transaction event store type

func (*TxEventStore) Start

func (t *TxEventStore) Start() error

Start starts the file transaction event store, by opening the autofile group

func (*TxEventStore) Stop

func (t *TxEventStore) Stop() error

Stop stops the file transaction event store, by closing the autofile group

Jump to

Keyboard shortcuts

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