handler

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SizeMegaByte = 1 << (10 * 2)
)

Variables

This section is empty.

Functions

func HandleStaticFiles

func HandleStaticFiles() gin.HandlerFunc

HandleStaticFiles takes the files inside the configured file storage path and serves them to the client.

Types

type UploadHandler

type UploadHandler struct {
	AuthConfig  *config.AuthConfig
	FileStorage *storage.FileStorage
	// contains filtered or unexported fields
}

func NewUploadHandler

func NewUploadHandler() *UploadHandler

func (*UploadHandler) ReloadAuthConfig

func (h *UploadHandler) ReloadAuthConfig()

ReloadAuthConfig reloads the auth.yml config from the local file system.

func (*UploadHandler) Upload

func (h *UploadHandler) Upload(c *gin.Context)

Jump to

Keyboard shortcuts

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