package
2.2.0-preview.5.5+incompatible
Repository: https://github.com/18f/culper.git
Documentation: pkg.go.dev

# Functions

AccountAndSessionFromRequestContext gets the reference to the Account stored in the request.Context().
AddCSRFTokenHeader adds the current token header to the response.
DecodeJSON decodes a request body to the specified interface.
DeleteSessionCookie removes the session cookie.
EncodeErrJSON will return an error in JSON format.
EncodeJSON encodes any object and writes it to a response writer.
Error renders http error information.
NewCSRFMiddleware returns a configured CSRFMiddleware.
NewSessionCookieService returns a SessionCookieService.
NewSessionMiddleware returns a configured SessionMiddleware.
RespondWithErrors writes an error code and a json error response from structuredErrors.
RespondWithStructuredError writes an error code and a json error response.
SetAccountAndSessionInRequestContext modifies the request's Context() to add the Account.

# Constants

SessionCookieName is the name of the cookie that is used to store the session.

# Variables

APIName ...
APIVersion ...
TransportLayerSecurity is the TLS configuration settings for a HTTPS server.

# Structs

AttachmentDeleteHandler is the handler for deleting attachments.
AttachmentGetHandler is the handler for getting attachments.
AttachmentListHandler is the handler for listing attachments.
AttachmentSaveHandler is the handler for saving attachments.
BasicAuthHandler is the handler for basic authentication.
CacheHandler implements the cache settings on web responses.
CORSHandler is the handler for CORS.
CSRFMiddleware is a middleware that uses gorilla/csrf to protect all state changing operations from CSRF attacks.
FormHandler is the handler for the form.
LoggingHandler is the handler for logging.
LogoutHandler is the handler for logging out of a session.
RefreshHandler is the handler for refreshing the session.
RootHandler is the handler for the root endpoint.
SamlRequestHandler is the handler for creating a SAML request.
SamlResponseHandler is the callback handler for both login and logout SAML Responses.
SamlSLORequestHandler is the handler for creating a SAML Logout request.
SaveHandler is the handler for saving the application.
SecurityHandler implements the security related settings on web responses.
Server is a HTTP/HTTPS server implementation.
SessionCookieService writes session cookies to a response.
SessionMiddleware is the session handler.
StatusHandler is the handler for the application status.
SubmitHandler is the handler for submitting the application.
ValidateHandler is the handler for validating a payload.