memory

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a sqlite backed implementation of the store interface.

func NewStore

func NewStore() (*Store, error)

func (*Store) Add

func (s *Store) Add(ctx context.Context, m server.Image) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, id uuid.UUID) (server.Image, error)

func (*Store) List

func (b *Store) List(ctx context.Context, pageSize, pageNumber int) ([]server.Image, error)

func (*Store) Search

func (s *Store) Search(ctx context.Context, name string) ([]server.Image, error)

Jump to

Keyboard shortcuts

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