bolt

package
v0.0.0-...-8a4eff6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func (*Driver) Close

func (d *Driver) Close() error

Close closes the underlying database.

func (*Driver) Open

func (d *Driver) Open(path string) error

Open opens the connection to the bolt database defined by path.

type PaperRepository

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

func NewPaperRepository

func NewPaperRepository(driver *Driver) *PaperRepository

func (*PaperRepository) Get

func (r *PaperRepository) Get(userID int, source, ref string) (int, error)

func (*PaperRepository) Save

func (r *PaperRepository) Save(userID, paperID int, source, ref string) error

Jump to

Keyboard shortcuts

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