Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router is what registers the UI routes for handling registration, authentication, and general management of a user's account.
func (*Router) RegisterAPI ¶
RegisterAPI registers the only API route for a user, which is "/user". This will return the currently authenticated user from the request.
func (*Router) RegisterUI ¶
RegisterUI registers the routes for User authentication, and account management against the given mux.Router. The given http.Handler is used for CSRF protection. None of the given gates are applied to any of the registered routes.
Click to show internal directories.
Click to hide internal directories.