constants

package
v1.3.41 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version is the current version of the server.
	Version = "1.3.41"

	// ExtensionLengthLimit means that file extensions cannot have more characters than the number specified.
	// file.png has an extension of 4.
	ExtensionLengthLimit = 12
)
View Source
const (
	RateLimitBandwidthDownload = "bw_dn_"
	RateLimitBandwidthUpload   = "bw_up_"
)
View Source
const (
	RequestMaxBodySizePadding = 2048
)

Variables

View Source
var PathLengthLimitBytes int

sus imposter

Functions

This section is empty.

Types

type PathType

type PathType int

PathType is an integer representation of what path is currently being handled. Used mainly by constants.LimitPath.

const (
	// LimitUploadPath represents /upload.
	LimitUploadPath PathType = iota

	// LimitGeneralPath represents all paths which aren't handled individually (like LimitUploadPath).
	LimitGeneralPath
)

Jump to

Keyboard shortcuts

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