media

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Media

type Media struct {
	ID        int       `db:"id" json:"id"`
	UUID      string    `db:"uuid" json:"uuid"`
	Filename  string    `db:"filename" json:"filename"`
	Thumb     string    `db:"thumb" json:"thumb"`
	CreatedAt null.Time `db:"created_at" json:"created_at"`
	ThumbURL  string    `json:"thumb_url"`
	Provider  string    `json:"provider"`
	URL       string    `json:"url"`
}

Media represents an uploaded object.

type Store

type Store interface {
	Put(string, string, io.ReadSeeker) (string, error)
	Delete(string) error
	Get(string) string
}

Store represents functions to store and retrieve media (files).

Directories

Path Synopsis
providers
s3

Jump to

Keyboard shortcuts

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