badgers3

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: 11 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, s3 *minio.Client, bucketName string) (*Page, error)

func (*Page) Get

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

func (*Page) GetFile

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

func (*Page) ListAll

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

func (*Page) ListUnprocessed

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

func (*Page) Save

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

Jump to

Keyboard shortcuts

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