handler

package
v0.0.0-...-8f3f873 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DesignSizeLimit int64 = 100 * 1024 * 1024 //200MB

DesignSizeLimit is the maximum upload request size

View Source
const RequestMaxMemory int64 = 2 * 1024 * 1024 //2MB

RequestMaxMemory is the maximum memory used to parse the multipart form

View Source
const TemporaryDirectory string = ""

TemporaryDirectory is a temporary path to store uploaded files, empty string indicates the system's temproary directory

Variables

This section is empty.

Functions

func HandleDesignUpload

func HandleDesignUpload(w http.ResponseWriter, r *http.Request)

HandleDesignUpload handles user uploaded design

func NewRouter

func NewRouter() http.Handler

NewRouter returns the HTTP handler that implements the server login

Types

This section is empty.

Jump to

Keyboard shortcuts

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