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
Click to show internal directories.
Click to hide internal directories.