stores

package
v0.0.0-...-fefbf58 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Append tx log to store
	Append(*packet.TxLog) error
	// Load tx logs by id
	Load(string) ([]*packet.TxLog, error)
	// Keys return tx ids
	Keys() ([]string, error)
	// Flush tx logs by id
	Flush(id string) error
	// Last return last tx log by id
	Last(id string) (*packet.TxLog, error)
	// Close close connection
	Close() error
}

func NewMemStore

func NewMemStore() Store

Jump to

Keyboard shortcuts

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