repository

package
v0.0.0-...-36feab7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMediaNotFound = errors.New("media not found")
)

Common errors

Functions

This section is empty.

Types

type MediaRepository

type MediaRepository interface {
	Create(ctx context.Context, m *model.Media) (func(bool), error)
	GetContentType(ctx context.Context, referenceID string) (string, error)
}

MediaRepository is used to interface with the media data store.

func NewMediaRepository

func NewMediaRepository(url string) MediaRepository

NewMediaRepository returns a new instance of MediaRepository.

Jump to

Keyboard shortcuts

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