controller

package
v0.0.0-...-a14fa2b Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InvalidUID - userID invalid
	InvalidUID = 0
	// FileKey - key of the file
	FileKey = "file"
	// FileUploadDir - the root directory of the upload files
	FileUploadDir = "files"
	// PictureDir - save pictures file
	PictureDir = "picture"
	// VideoDir - save videos file
	VideoDir = "video"
	// OtherDir - files other than video and picture
	OtherDir = "other"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadController

type UploadController struct {
	BaseURL string
	// contains filtered or unexported fields
}

UploadController -

func New

func New(db *sql.DB, baseURL string, getUID func(c *gin.Context) (uint64, error)) *UploadController

New -

func (*UploadController) RegisterRouter

func (u *UploadController) RegisterRouter(r gin.IRouter)

RegisterRouter -

Jump to

Keyboard shortcuts

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