Documentation
¶
Index ¶
- Variables
- type DB
- func (d *DB) FindMatches(prefixes [][16]byte) ([]*wtwire.StateUpdate, error)
- func (d *DB) GetSessionInfo(sessionID uint64) (*wtwire.SessionInfo, error)
- func (d *DB) InsertSessionInfo(info *wtwire.SessionInfo) error
- func (d *DB) InsertTransaction(blob *wtwire.StateUpdate) error
- func (d *DB) ListEntries() error
- func (d *DB) Wipe() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found in db")
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) FindMatches ¶
func (d *DB) FindMatches(prefixes [][16]byte) ([]*wtwire.StateUpdate, error)
func (*DB) GetSessionInfo ¶
func (d *DB) GetSessionInfo(sessionID uint64) (*wtwire.SessionInfo, error)
func (*DB) InsertSessionInfo ¶
func (d *DB) InsertSessionInfo(info *wtwire.SessionInfo) error
func (*DB) InsertTransaction ¶
func (d *DB) InsertTransaction(blob *wtwire.StateUpdate) error
func (*DB) ListEntries ¶
Click to show internal directories.
Click to hide internal directories.