store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bookmark

type Bookmark struct {
	CharOffset int `json:"char_offset"`
}

type DB

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

func New

func New(dbPath string, readHistoryLimit int) (*DB, error)

func (*DB) AddToReadHistory

func (db *DB) AddToReadHistory(bookID string) error

func (*DB) Close

func (db *DB) Close() error

func (*DB) GetBookmark

func (db *DB) GetBookmark(bookID string) (Bookmark, error)

func (*DB) GetReadHistory

func (db *DB) GetReadHistory() ([]string, error)

func (*DB) SetBookmark

func (db *DB) SetBookmark(bookID string, mark Bookmark) error

func (*DB) SetReadHistory

func (db *DB) SetReadHistory(history []string) error

Jump to

Keyboard shortcuts

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