Documentation
¶
Index ¶
- Variables
- func BuildURL(r *http.Request, fragments ...string) *url.URL
- func CleanTempFile(file *os.File)
- func SanitizeFilename(filename string) string
- func ShowInline(contentType string) bool
- func SitePasswordMiddleware(sitePasswordHash string) func(http.Handler) http.Handler
- func ValidateContentType(h http.Header) bool
- type OptionFn
- func ExtraFooterText(text string) OptionFn
- func MaxRequests(requests int) OptionFn
- func MaxUploadSize(kbytes int64) OptionFn
- func Port(port int) OptionFn
- func Sentry(sentryDSN, sentryEnvironment string) OptionFn
- func SitePassword(password string) OptionFn
- func UseStorage(storage storage.Storage) OptionFn
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticFS embed.FS
View Source
var TemplatesFS embed.FS
Functions ¶
func CleanTempFile ¶
func SanitizeFilename ¶
func ShowInline ¶
func SitePasswordMiddleware ¶ added in v0.7.0
func ValidateContentType ¶
Types ¶
type OptionFn ¶
type OptionFn func(*Server)
func ExtraFooterText ¶ added in v0.7.0
func MaxRequests ¶ added in v0.5.0
func MaxUploadSize ¶
func SitePassword ¶ added in v0.7.0
func UseStorage ¶
Click to show internal directories.
Click to hide internal directories.