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.
Click to show internal directories.
Click to hide internal directories.