memory

package
v0.0.0-...-2e14e4b Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Repository defines a memory movie metadata repository.

func New

func New() *Repository

New creates a new memory repository.

func (*Repository) Get

func (r *Repository) Get(ctx context.Context, id string) (*model.Metadata, error)

Get retrieves movie metadata for by movie id.

func (*Repository) Put

func (r *Repository) Put(ctx context.Context, id string, metadata *model.Metadata) error

Put adds movie metadata for a given movie id.

Jump to

Keyboard shortcuts

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