mediadb

package
v0.0.0-...-ed3c475 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaDB

type MediaDB interface {
	GetAssetLocation(ctx context.Context, mediaID, mimeType string) (string, error)
	UploadMedia(ctx context.Context, filename string, media []byte) (string, error)
}

func NewMediaDB

func NewMediaDB(config config.Config, awsSession *session.Session) MediaDB

type MediaType

type MediaType string
const (
	GifMedia   MediaType = "gif"
	ImageMedia MediaType = "image"
	VideoMedia MediaType = "video"
)

Jump to

Keyboard shortcuts

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