media

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Params
}

func New

func New(params Params) Handler

func (Handler) Upload

func (h Handler) Upload(c echo.Context) error

swagger:route POST /media media reqMediaUpload

Uploads media images

	<p>
		Поддерживается загрузка только png изображение, которые будут перекодированны
		в jpg изображения. Размер изображения будет изменен до минимального необходимого
		разрешения.
 </p>

	<p>

    Responses:
      200: Media

type Params

type Params struct {
	fx.In

	MediaService service.MediaService
	URLBuilder   url_builder.Helper
}

Jump to

Keyboard shortcuts

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