Documentation
¶
Index ¶
- func CreateTask(ctx context.Context, handler string, payload interface{}) (*taskspb.Task, error)
- func ErrorResponse(c echo.Context, status int, err error) error
- func NewHttpContext(c echo.Context) context.Context
- func PageViewMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func PostToAnalytics(request *http.Request, values *map[string]string) error
- func ReportError(e error)
- func SendEmail(sender, recipient, subject, body string) error
- func StandardResponse(c echo.Context, status int, res interface{}) error
- func TrackEvent(request *http.Request, category, action, label string, value int) error
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTask ¶
CreateTask is used to schedule a background task using the default queue. The payload can be any struct and will be marshalled into a json string.
func ErrorResponse ¶
ErrorResponse reports the error and responds with an ErrorObject
func NewHttpContext ¶
NewHttpContext creates a new context for appengine execution FIXME make this more pluggable or change outright
func PageViewMiddleware ¶
func PageViewMiddleware(next echo.HandlerFunc) echo.HandlerFunc
PageViewMiddleware logs page views to Google Analytics
func PostToAnalytics ¶
PostToAnalytics send the values to Google Analytics
func ReportError ¶
func ReportError(e error)
func StandardResponse ¶
StandardResponse is the default way to respond to API requests
Types ¶
Click to show internal directories.
Click to hide internal directories.