controller

package
v0.0.0-...-f73c795 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

The controllers package contains the controllers that gocraft/web uses to route to.

Index

Constants

This section is empty.

Variables

View Source
var MAX_REQUESTS int = 1000
View Source
var MAX_REQUESTS_ASYNC int = 10000

Functions

func AsyncBatch

func AsyncBatch(c *context.Context, rw web.ResponseWriter, req *web.Request)

AsyncBatch processes batch requests asynchronously

func AsyncBatchRetrieve

func AsyncBatchRetrieve(c *context.Context, rw web.ResponseWriter, req *web.Request)

AsyncBatchRetrieve retrieves an asynchronous batch requests data

func Batch

func Batch(c *context.Context, rw web.ResponseWriter, req *web.Request)

Batch processes batch requests

func Error

func Error(c *context.Context, rw web.ResponseWriter, req *web.Request, err interface{})

func NotFound

func NotFound(c *context.Context, rw web.ResponseWriter, req *web.Request)

Not found is the catch-all endpoint for when no endpoint is found

func Ping

func Ping(c *context.Context, rw web.ResponseWriter, req *web.Request)

Ping test endpoint

Types

This section is empty.

Jump to

Keyboard shortcuts

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