common

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ErrCodeBadRequest = "M_BAD_REQUEST"
View Source
const ErrCodeCannotOverwrite = "M_CANNOT_OVERWRITE_MEDIA"
View Source
const ErrCodeForbidden = "M_FORBIDDEN"
View Source
const ErrCodeInvalidHost = "M_INVALID_HOST"
View Source
const ErrCodeMediaTooLarge = "M_MEDIA_TOO_LARGE"
View Source
const ErrCodeMediaTooSmall = "M_MEDIA_TOO_SMALL"
View Source
const ErrCodeMethodNotAllowed = "M_METHOD_NOT_ALLOWED"
View Source
const ErrCodeMissingToken = "M_MISSING_TOKEN"
View Source
const ErrCodeNoGuests = "M_GUEST_ACCESS_FORBIDDEN"
View Source
const ErrCodeNotFound = "M_NOT_FOUND"
View Source
const ErrCodeNotYetUploaded = "M_NOT_YET_UPLOADED"
View Source
const ErrCodeQuotaExceeded = "M_QUOTA_EXCEEDED"
View Source
const ErrCodeRateLimitExceeded = "M_LIMIT_EXCEEDED"
View Source
const ErrCodeTooLarge = "M_TOO_LARGE"
View Source
const ErrCodeUnknown = "M_UNKNOWN"
View Source
const ErrCodeUnknownToken = "M_UNKNOWN_TOKEN"

Variables

View Source
var ErrAlreadyUploaded = errors.New("already uploaded")
View Source
var ErrExpired = errors.New("expired")
View Source
var ErrHostNotAllowed = errors.New("host not allowed")
View Source
var ErrHostNotFound = errors.New("host not found")
View Source
var ErrInvalidHost = errors.New("invalid host")
View Source
var ErrMediaDimensionsTooSmall = errors.New("media is too small dimensionally")
View Source
var ErrMediaNotFound = errors.New("media not found")
View Source
var ErrMediaNotYetUploaded = errors.New("media not yet uploaded")
View Source
var ErrMediaQuarantined = errors.New("media quarantined")
View Source
var ErrMediaTooLarge = errors.New("media too large")
View Source
var ErrQuotaExceeded = errors.New("quota exceeded")
View Source
var ErrWrongUser = errors.New("wrong user")

Functions

This section is empty.

Types

type MmrContextKey

type MmrContextKey string
const (
	ContextLogger           MmrContextKey = "mmr.logger"
	ContextIgnoreHost       MmrContextKey = "mmr.ignore_host"
	ContextAction           MmrContextKey = "mmr.action"
	ContextRequest          MmrContextKey = "mmr.request"
	ContextRequestId        MmrContextKey = "mmr.request_id"
	ContextRequestStartTime MmrContextKey = "mmr.request_start_time"
	ContextServerConfig     MmrContextKey = "mmr.serverConfig"
	ContextDomainConfig     MmrContextKey = "mmr.domain_config"
	ContextStatusCode       MmrContextKey = "mmr.status_code"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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