db

package
v0.0.0-...-5439d4c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func New

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

func (*Database) AddPage

func (d *Database) AddPage(pi common.PageInfo) error

func (*Database) AddSession

func (d *Database) AddSession(id, ip string) error

func (*Database) GetAllPages

func (d *Database) GetAllPages(archived bool, maxPages int) (pages []common.PageInfo, err error)

func (*Database) GetPage

func (d *Database) GetPage(id string) (pi common.PageInfo, err error)

func (*Database) TogglePageArchived

func (d *Database) TogglePageArchived(id string) error

func (*Database) ValidSession

func (d *Database) ValidSession(id string) (bool, error)

Jump to

Keyboard shortcuts

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