Categorygithub.com/kyleu/libnpn/npncontroller
modulepackage
0.0.1
Repository: https://github.com/kyleu/libnpn.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Entrypoint for most requests.
An action that requires a successful auth.Check and a user role of npnuser.RoleAdmin.
Creates breadcrumbs for admin actions.
An action that requires a successful auth.Check before proceeding.
OAuth callback from 3rd-party service.
Removes an OAuth session record from the user's session.
OAuth submission, redirects to 3rd-party.
Show the details of an active WebSocket connection.
Lists all active WebSocket connections.
Posts a message to a WebSocket connection.
Respond with an error based on the provided message.
Respond with an error and optional messages.
Displays the contents of a path in the filesystem.
Displays the root of the filesystem.
Sets a flash cookie (which is handled elsewhere) and redirects to a url.
Returns the content type of the request.
Common MIME types.
Returns true if the type is in fact JSON.
Lists the Go modules used.
Constructs a new JSONResponse.
404 handler.
Handles HTTP requests of type OPTIONS, adds CORS headers.
Parses the provided URL querystring.
Serialize body to JSON, and respond with correct MIME type.
Respond with provided byte array and MIME type.
List the configured HTTP routes.
Common routes for OAuth callbacks and signing out.
Common routes for browsing the filesystem.
Common routes for WebSocket administration, actions that manage connections.
Common utility routes, for viewing the installed routes and modules, and providing sitemap.xml, OPTIONS, and 404 handlers.
Saves the session, call after mutating.
Handles the standard /sitemap.xml request for the configured routes.
Helper for transforming the result of a template.
Writes CORS headers to a provided http.ResponseWriter.

# Variables

No description provided by the author
No description provided by the author

# Structs

Used by RespondJSON.
Respresent an entry in a URL's querystring along with a description.

# Type aliases

Helper for arrays, represents a URL's querystring.