handlers

package
v0.0.0-...-21047fa Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: GPL-2.0 Imports: 32 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AudioFile = "audio"
	ImageFile = "image"
	VideoFile = "video"
	PlainFile = "plain"
)
View Source
const DefaultCollection = "assets"
View Source
const SNS_SUBSCRIPTIONCONFIRMATION_TYPE = "SubscriptionConfirmation"
View Source
const TemporaryRedirect = 302
View Source
const TemporaryRedirectCode = 302
View Source
const UploadPrefix = "original_file"

Variables

This section is empty.

Functions

func ConcatenateErrors

func ConcatenateErrors(errs *[]error) string

func DownloadFile

func DownloadFile(url, loc string) error

func GenerateSlug

func GenerateSlug(str string) (slug string)

func ProcessMessage

func ProcessMessage(key string, bucket string, size int64)

func S3FileExists

func S3FileExists(bucket, path string) bool

func S3FileSize

func S3FileSize(bucket, path string) int64

func ValidateSignature

func ValidateSignature(request *gottp.Request) bool

Types

type Asset

type Asset struct {
	gottp.BaseHandler
}

func (*Asset) Get

func (self *Asset) Get(request *gottp.Request)

func (*Asset) Post

func (self *Asset) Post(request *gottp.Request)

type Assets

type Assets struct {
	gottp.BaseHandler
}

func (*Assets) Post

func (self *Assets) Post(request *gottp.Request)

type Record

type Record struct {
	S3 struct {
		Bucket struct {
			Name string `json:"name" required:"true"`
		} `json:"bucket" required:"true"`
		Object struct {
			Key  string `json:"key" required:"true"`
			Size int64  `json:"size" required:"true"`
		} `json:"object" required:"true"`
	}
}

type SNS

type SNS struct {
	gottp.BaseHandler
}

func (*SNS) Post

func (self *SNS) Post(request *gottp.Request)

type Thumbnail

type Thumbnail struct {
	gottp.BaseHandler
}

func (*Thumbnail) Get

func (self *Thumbnail) Get(request *gottp.Request)

Jump to

Keyboard shortcuts

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