mysql

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: 6 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 {
	// contains filtered or unexported fields
}

Repository defines a MySQL-based movie metadata repository.

func New

func New() (*Repository, error)

New creates a new MySQL-based repository.

func (*Repository) Get

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

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