Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Close() error Sync() error Update(func(*bbolt.Tx) error) error View(func(*bbolt.Tx) error) error }
Database is a database used to save offsets
func OpenDatabase ¶
OpenDatabase will open and create a database
type StubDatabase ¶
type StubDatabase struct{}
StubDatabase is an implementation of Database that succeeds on all calls without persisting anything to disk. This is used when --database is unspecified.
func NewStubDatabase ¶
func NewStubDatabase() *StubDatabase
NewStubDatabase creates a new StubDatabase
func (*StubDatabase) Close ¶
func (d *StubDatabase) Close() error
Close will be ignored by the stub database
func (*StubDatabase) Sync ¶
func (d *StubDatabase) Sync() error
Sync will be ignored by the stub database
Click to show internal directories.
Click to hide internal directories.