controllers

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

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Allow uploads up to 10 mb
	Size = utils.MebibyteToBytes(10)
)

Functions

func CreateRouter

func CreateRouter(cfg *config.Config) *mux.Router

CreateRouter creates the router for the http server

func FilesMetaHandler

func FilesMetaHandler(filesRepo files.Repository) http.HandlerFunc

func Handle

func Handle(cfg *config.Config)

Handle creates the router and starts the server

func MetaHandler

func MetaHandler(metaConfig *config.MetaConfig) http.HandlerFunc

func ServeHandler

func ServeHandler(filesRepo files.Repository) http.HandlerFunc

func Shutdown

func Shutdown()

Shutdown stops the server

func UploadHandler

func UploadHandler(filesRepo files.Repository) http.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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