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)
Click to show internal directories.
Click to hide internal directories.