store

package
v0.0.0-...-4976903 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLite3

func NewSQLite3(ctx context.Context, path string) (daemon.MessageStore, error)

Types

type NullStore

type NullStore struct {
}

func (*NullStore) GetMetadata

func (s *NullStore) GetMetadata(_ string) (daemon.Metadata, bool, error)

func (*NullStore) PutMessage

func (s *NullStore) PutMessage(_ string, _ *daemon.Message) error

func (*NullStore) RecordEval

func (s *NullStore) RecordEval(_ string, _ *daemon.EvalRecord) error

type SQLite3Store

type SQLite3Store struct {
	io.Closer
	// contains filtered or unexported fields
}

func (*SQLite3Store) Close

func (s *SQLite3Store) Close() error

func (*SQLite3Store) GetMetadata

func (s *SQLite3Store) GetMetadata(storeID string) (daemon.Metadata, bool, error)

func (*SQLite3Store) PutMessage

func (s *SQLite3Store) PutMessage(storeID string, msg *daemon.Message) error

func (*SQLite3Store) RecordEval

func (s *SQLite3Store) RecordEval(storeID string, r *daemon.EvalRecord) error

Jump to

Keyboard shortcuts

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