store

package
v0.0.0-...-4a1318b Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = &Options{Create: true}

Functions

This section is empty.

Types

type Options

type Options struct {
	Create bool
}

type Store

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

func New

func New(db *database.DB) *Store

func Open

func Open(path string, opts *Options) (*Store, error)

func (*Store) Add

func (s *Store) Add(rep *drawin.Report, data []byte) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) Get

func (s *Store) Get(j *job.Job) (*drawin.Report, error)

func (*Store) Initialize

func (s *Store) Initialize() error

func (*Store) Read

func (s *Store) Read(rep *drawin.Report) ([]byte, error)

Jump to

Keyboard shortcuts

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