database

package
v0.0.0-...-5085e7c Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 2 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 bbolt.DB

func NewDatabase

func NewDatabase() (*Database, error)

func (*Database) Close

func (s *Database) Close() error

func (*Database) GetCookies

func (s *Database) GetCookies() (snapshot []byte, err error)

func (*Database) GetHighestID

func (s *Database) GetHighestID(blogName string) (int64, error)

func (*Database) SaveCookies

func (s *Database) SaveCookies(snapshot []byte) error

func (*Database) SetHighestID

func (s *Database) SetHighestID(blogName string, highestID int64) error

Jump to

Keyboard shortcuts

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