Documentation ¶
Index ¶
- type DoNotCacheResponse
- type DownloadResponse
- type EmptyResponse
- type ErrorResponse
- func AuthFailed() *ErrorResponse
- func BadGatewayError(message string) *ErrorResponse
- func BadRequest(message string) *ErrorResponse
- func GuestAuthFailed() *ErrorResponse
- func InternalServerError(message string) *ErrorResponse
- func MediaBlocked() *ErrorResponse
- func MethodNotAllowed() *ErrorResponse
- func NotFoundError() *ErrorResponse
- func NotYetUploaded() *ErrorResponse
- func QuotaExceeded() *ErrorResponse
- func RateLimitReached() *ErrorResponse
- func RequestTooLarge() *ErrorResponse
- func RequestTooSmall() *ErrorResponse
- type HtmlResponse
- type RedirectResponse
- type StreamDataResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoNotCacheResponse ¶
type DoNotCacheResponse struct {
Payload interface{}
}
type DownloadResponse ¶
type DownloadResponse struct { ContentType string Filename string SizeBytes int64 Data io.ReadCloser TargetDisposition string }
func MakeQuarantinedImageResponse ¶
func MakeQuarantinedImageResponse(stream io.ReadCloser) *DownloadResponse
type EmptyResponse ¶
type EmptyResponse struct{}
type ErrorResponse ¶
type ErrorResponse struct { Code string `json:"errcode"` Message string `json:"error"` InternalCode string `json:"mr_errcode"` }
func AuthFailed ¶
func AuthFailed() *ErrorResponse
func BadGatewayError ¶
func BadGatewayError(message string) *ErrorResponse
func BadRequest ¶
func BadRequest(message string) *ErrorResponse
func GuestAuthFailed ¶
func GuestAuthFailed() *ErrorResponse
func InternalServerError ¶
func InternalServerError(message string) *ErrorResponse
func MediaBlocked ¶
func MediaBlocked() *ErrorResponse
func MethodNotAllowed ¶
func MethodNotAllowed() *ErrorResponse
func NotFoundError ¶
func NotFoundError() *ErrorResponse
func NotYetUploaded ¶
func NotYetUploaded() *ErrorResponse
func QuotaExceeded ¶
func QuotaExceeded() *ErrorResponse
func RateLimitReached ¶
func RateLimitReached() *ErrorResponse
func RequestTooLarge ¶
func RequestTooLarge() *ErrorResponse
func RequestTooSmall ¶
func RequestTooSmall() *ErrorResponse
type HtmlResponse ¶
type HtmlResponse struct {
HTML string
}
type RedirectResponse ¶
type RedirectResponse struct {
ToUrl string
}
func Redirect ¶
func Redirect(url string) *RedirectResponse
type StreamDataResponse ¶
Click to show internal directories.
Click to hide internal directories.