Documentation
¶
Overview ¶
Package context allows for collecting per-request-data like authentication, session or routing information. It abstracts from "how" the information is saved on the request and provides a highly application-specific interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// UserId is the unique id of the user, when he authenticated, or the empty
// string otherwise.
UserId string
}
func (Context) IsAuthenticated ¶
Click to show internal directories.
Click to hide internal directories.