Documentation ¶
Index ¶
- Variables
- func SaveBts(bts []byte, fileName string) error
- func SavePng(img image.Image, fileName string) error
- type ImageData
- type Media
- func (im *Media) Get(filename string) string
- func (im *Media) Image(r *http.Request) (fileName string, err error)
- func (im *Media) ListImages() []string
- func (im *Media) ListVideos() []VideoInfo
- func (im *Media) ListVideosByTime(start, stop int) []VideoInfo
- func (im *Media) Video(r *http.Request) (fileName string, err error)
- type VideoInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWrongFormat = errors.New("Wrong Format ") ErrFileAlreadyExists = errors.New("File already exist") )
View Source
var (
ErrWrongBase64Format = errors.New("Wrong Image Data Format ")
)
Functions ¶
Types ¶
type Media ¶
Image represents the objects from where files are uploaded and gathered
func (*Media) ListImages ¶
ListImages returns a list of uploaded images
func (*Media) ListVideos ¶
ListVideos returns a list of videos
func (*Media) ListVideosByTime ¶
ListVideosByTime
Click to show internal directories.
Click to hide internal directories.