Documentation
¶
Index ¶
- Variables
- func EntityIdNotValidResponsePayload(appEngineContext appengine.Context, responseWriter http.ResponseWriter, ...)
- func PocketHandler(handler http.Handler) http.Handler
- func RequestParamFloat64(url *url.URL, key string) (float64, error)
- func RequestParamInt64(url *url.URL, key string) (int64, error)
- func RequestParamString(url *url.URL, key string) string
- func UnauthorizedResponsePayload(appEngineContext appengine.Context, responseWriter http.ResponseWriter, ...)
- type AppEngineHandler
- type AuthHandler
- type EntityIdHandler
- type Event
- type LocaleHandler
- type LoggedHandler
- type RequestContext
- type RequestSource
- type RequestSourceHandler
- type UploadFunc
- type UploadHandler
- type UserHandler
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 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 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 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 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)
Click to show internal directories.
Click to hide internal directories.