bookshelf

package
v0.0.0-...-5d92bec Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	META_BUCKET = "META"
	DATA_BUCKET = "DATA"

	HASH_KEY = "FLOS"
)

Variables

This section is empty.

Functions

func IsBookshelf

func IsBookshelf(path string) bool

Types

type Book

type Book struct {
	ID        uint64
	Series    []byte
	Contents  []byte
	Timestamp int64
}

type Bookshelf

type Bookshelf struct {
	DBFile string
	// contains filtered or unexported fields
}

func New

func New(path string, maxRow int) (*Bookshelf, error)

func (*Bookshelf) DeleteHandler

func (b *Bookshelf) DeleteHandler(c echo.Context) error

func (*Bookshelf) GetHandler

func (b *Bookshelf) GetHandler(c echo.Context) error

func (*Bookshelf) Has

func (b *Bookshelf) Has(series []byte) (bool, error)

func (*Bookshelf) Put

func (b *Bookshelf) Put(series, contents []byte) error

Jump to

Keyboard shortcuts

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