mysql

package
v0.0.0-...-350df58 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 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 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)

Get retrieves movie metadata by movie id.

func (*Repository) Put

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

Put adds a 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