badger

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

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

func NewPage

func NewPage(db *badger.DB) (*Page, error)

func (*Page) Get

func (p *Page) Get(_ context.Context, id uuid.UUID) (*entity.Page, error)

func (*Page) GetFile

func (p *Page) GetFile(_ context.Context, pageID, fileID uuid.UUID) (*entity.File, error)

func (*Page) ListAll

func (p *Page) ListAll(ctx context.Context) ([]*entity.Page, error)

func (*Page) ListUnprocessed added in v0.1.3

func (p *Page) ListUnprocessed(ctx context.Context) ([]entity.Page, error)

func (*Page) Save

func (p *Page) Save(_ context.Context, page *entity.Page) error

Jump to

Keyboard shortcuts

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