http

package
v0.0.0-...-6740b9f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2014 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CORS *tt.CORSBuilder
)

Functions

func EntityIdNotValidResponsePayload

func EntityIdNotValidResponsePayload(appEngineContext appengine.Context, responseWriter http.ResponseWriter, internalError error)

func PocketHandler

func PocketHandler(handler http.Handler) http.Handler

func RequestParamFloat64

func RequestParamFloat64(url *url.URL, key string) (float64, error)

func RequestParamInt64

func RequestParamInt64(url *url.URL, key string) (int64, error)

func RequestParamString

func RequestParamString(url *url.URL, key string) string

func UnauthorizedResponsePayload

func UnauthorizedResponsePayload(appEngineContext appengine.Context, responseWriter http.ResponseWriter, internalError error)

Types

type AppEngineHandler

type AppEngineHandler struct {
	// contains filtered or unexported fields
}

func AppEngineHandled

func AppEngineHandled(handler http.Handler) *AppEngineHandler

func (*AppEngineHandler) ServeHTTP

func (self *AppEngineHandler) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)

type AuthHandler

type AuthHandler struct {
	// contains filtered or unexported fields
}

func AuthHandled

func AuthHandled(handler http.Handler) *AuthHandler

func (*AuthHandler) ServeHTTP

func (self *AuthHandler) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)

type EntityIdHandler

type EntityIdHandler struct {
	// contains filtered or unexported fields
}

func EntityIdHandled

func EntityIdHandled(handler http.Handler) *EntityIdHandler

func (*EntityIdHandler) ServeHTTP

func (self *EntityIdHandler) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)

type Event

type Event struct {
	Created      time.Time
	URL          string
	ResponseCode int
	Duration     int64
	UserAgent    string
	IPAddress    string
	Country      string
	Region       string
	City         string
	CityLatLng   string
	Locale       string
	ClientId     int64
}

type LocaleHandler

type LocaleHandler struct {
	// contains filtered or unexported fields
}

func LocaleHandled

func LocaleHandled(handler http.Handler) *LocaleHandler

func (*LocaleHandler) ServeHTTP

func (self *LocaleHandler) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)

type LoggedHandler

type LoggedHandler struct {
	// contains filtered or unexported fields
}

func LoggerHandled

func LoggerHandled(handler http.Handler) *LoggedHandler

func (*LoggedHandler) ServeHTTP

func (self *LoggedHandler) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)

type RequestContext

type RequestContext struct {
	AppEngineContext appengine.Context // add by AppEngineHandler
	Locale           string            // add by LocaleHandler
	EntityId         int64             // add by EntityIdHandler
	RequestSource    *RequestSource    // add by RequestSourceHandler
	ClientId         t.ClientClientId  // add by AuthHandler
	Token            string            // add by AuthHandler
	Client           *t.Client         // add by AuthHandler
	User             *t.User           // add by UserHandler
	MultipartReader  *multipart.Reader // add by UploadHandler
}

type RequestSource

type RequestSource struct {
	UserAgent  string
	IPAddress  string
	Country    string
	Region     string
	City       string
	CityLatLng string
}

type RequestSourceHandler

type RequestSourceHandler struct {
	// contains filtered or unexported fields
}

func RequestSourceHandled

func RequestSourceHandled(handler http.Handler) *RequestSourceHandler

func (*RequestSourceHandler) ServeHTTP

func (self *RequestSourceHandler) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)

type UploadFunc

type UploadFunc func(url *url.URL, header http.Header, requestContext *RequestContext) (int, http.Header, interface{}, error)

type UploadHandler

type UploadHandler struct {
	// contains filtered or unexported fields
}

func UploadHandled

func UploadHandled(handler UploadFunc) *UploadHandler

func (*UploadHandler) ServeHTTP

func (self *UploadHandler) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)

type UserHandler

type UserHandler struct {
	// contains filtered or unexported fields
}

func UserHandled

func UserHandled(handler http.Handler) *UserHandler

func (*UserHandler) ServeHTTP

func (self *UserHandler) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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