handlers

package
v0.0.0-...-7f5fdc3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2016 License: GPL-2.0 Imports: 30 Imported by: 0

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 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 int    `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