trackerboltdb

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltStore

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

BoltStore is a tracker store implementation.

func New

func New(path string) (*BoltStore, error)

New creates a new boltdbstore

func (*BoltStore) Close

func (b *BoltStore) Close() error

Close implements the store interface

func (*BoltStore) Get

func (b *BoltStore) Get(k string) (string, error)

Get implements the store interface

func (*BoltStore) GetEntry

func (b *BoltStore) GetEntry(hash string) (store.Entry, error)

GetEntry implements the store interface

func (*BoltStore) ListPrefix

func (b *BoltStore) ListPrefix(prefix string) ([]string, error)

ListPrefix implements the store interface

func (*BoltStore) Set

func (b *BoltStore) Set(k, v string) error

Set implements the store interface

type Entry

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

Entry is an store.Entry implementation

func (*Entry) GetLog

func (e *Entry) GetLog(indx uint64, log *web3.Log) error

GetLog implements the store interface

func (*Entry) LastIndex

func (e *Entry) LastIndex() (uint64, error)

LastIndex implements the store interface

func (*Entry) RemoveLogs

func (e *Entry) RemoveLogs(indx uint64) error

RemoveLogs implements the store interface

func (*Entry) StoreLog

func (e *Entry) StoreLog(log *web3.Log) error

StoreLog implements the store interface

func (*Entry) StoreLogs

func (e *Entry) StoreLogs(logs []*web3.Log) error

StoreLogs implements the store interface

Jump to

Keyboard shortcuts

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