handler

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(conf *config.Config, w http.ResponseWriter, r *http.Request)

func DownloadPDF

func DownloadPDF(conf *config.Config, w http.ResponseWriter, r *http.Request)

func GetFileList added in v1.4.0

func GetFileList(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, _ *http.Request)

func GetHealth

func GetHealth(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, r *http.Request)

func GetInfo

func GetInfo(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, r *http.Request)

func GetLog

func GetLog(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, r *http.Request)

func GetStorageStatus added in v1.4.0

func GetStorageStatus(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, _ *http.Request)

func GetTraceLog added in v1.0.9

func GetTraceLog(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, r *http.Request)

func GetVersion

func GetVersion(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, r *http.Request)

func Log

func Log(location string) (string, error)

func MakeUpdate added in v1.0.1

func MakeUpdate(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, _ *http.Request)

func MultipartPDFUpload

func MultipartPDFUpload(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, r *http.Request)

func MultipartUpload

func MultipartUpload(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, r *http.Request)

func Update

func Update(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, r *http.Request)

func UpdatePDF

func UpdatePDF(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, r *http.Request)

Types

type ServerFiles

type ServerFiles struct {
	Images []string `json:"images"`
	PDFs   []string `json:"pdfs"`
}

type ServerStatus

type ServerStatus struct {
	Images                         int    `json:"num_images"`
	ResizedImages                  int    `json:"num_resized_images"`
	ImagesSize                     int64  `json:"size_images"`
	ImagesSizeHumanReadable        string `json:"size_images_human_readable"`
	ResizedImagesSize              int64  `json:"size_resized_images"`
	ResizedImagesSizeHumanReadable string `json:"size_resized_images_human_readable"`
	Comment                        string `json:"comment"`
}

Jump to

Keyboard shortcuts

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