Documentation ¶
Index ¶
- Variables
- func CreateRouter(cfg *config.Config) *mux.Router
- func FilesMetaHandler(filesRepo files.Repository) http.HandlerFunc
- func Handle(cfg *config.Config)
- func MetaHandler(metaConfig *config.MetaConfig) http.HandlerFunc
- func ServeHandler(filesRepo files.Repository) http.HandlerFunc
- func Shutdown()
- func UploadHandler(filesRepo files.Repository) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Allow uploads up to 10 mb Size = utils.MebibyteToBytes(10) )
Functions ¶
func CreateRouter ¶
CreateRouter creates the router for the http server
func FilesMetaHandler ¶
func FilesMetaHandler(filesRepo files.Repository) http.HandlerFunc
func MetaHandler ¶
func MetaHandler(metaConfig *config.MetaConfig) http.HandlerFunc
func ServeHandler ¶
func ServeHandler(filesRepo files.Repository) http.HandlerFunc
func UploadHandler ¶
func UploadHandler(filesRepo files.Repository) http.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.