Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Geturl ¶
Geturl performs an HTTP GET request and caches the result to the datastore so you can safely retrieve the same url many times over without hammering a server or depleting a quota.
func WithSession ¶
func WithSession(h HandlerFuncWithSession) http.HandlerFunc
WithSession extends the signature of http.HandlerFunc with a session parameter, and returns a regular http.HandlerFunc to be used with http.HandleFunc. When your function is called, it will always be passed a valid session object along with the Request and ResponseWriter.
Types ¶
type HandlerFuncWithSession ¶
The HandlerFuncWithSession type has a similar signature to http.HandlerFunc, but adds a session parameter. Write your handler function with this signature to use sessions.
Click to show internal directories.
Click to hide internal directories.