mediadb

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 7 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
}

func NewStore

func NewStore(log *zerolog.Logger, client *mongo.Client) *Store

func (*Store) Create

func (s *Store) Create(ctx context.Context, m media.Media) (media.Media, error)

func (*Store) CreateMultiple

func (s *Store) CreateMultiple(ctx context.Context, mediaList []media.Media) ([]media.Media, error)

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, m media.Media) error

func (*Store) DeleteByID

func (s *Store) DeleteByID(ctx context.Context, mediaID string) error

func (*Store) QueryByID

func (s *Store) QueryByID(ctx context.Context, mediaID string) (media.Media, error)

func (*Store) QueryByIDs

func (s *Store) QueryByIDs(ctx context.Context, mediaIDs []string) ([]media.Media, error)

func (*Store) Update

func (s *Store) Update(ctx context.Context, m media.Media) (media.Media, error)

Jump to

Keyboard shortcuts

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