Documentation
¶
Index ¶
- Variables
- func AllSections(w http.ResponseWriter, r *http.Request)
- func BasicAuth(w http.ResponseWriter, r *http.Request)
- func CORS(h http.Handler) http.Handler
- func DecodeJSON(r io.Reader, v interface{}) error
- func DeleteAttachment(w http.ResponseWriter, r *http.Request)
- func EncodeErrJSON(w http.ResponseWriter, errors interface{}) error
- func EncodeJSON(w http.ResponseWriter, data interface{}) error
- func Error(w http.ResponseWriter, r *http.Request, err error)
- func GetAttachment(w http.ResponseWriter, r *http.Request)
- func Hash(w http.ResponseWriter, r *http.Request)
- func JwtTokenRefresh(w http.ResponseWriter, r *http.Request)
- func JwtTokenValidatorHandler(w http.ResponseWriter, r *http.Request) error
- func Logout(w http.ResponseWriter, r *http.Request)
- func RootHandler(w http.ResponseWriter, r *http.Request)
- func SamlCallbackHandler(w http.ResponseWriter, r *http.Request)
- func SamlServiceHandler(w http.ResponseWriter, r *http.Request)
- func Save(w http.ResponseWriter, r *http.Request)
- func SaveAttachment(w http.ResponseWriter, r *http.Request)
- func Section(w http.ResponseWriter, r *http.Request)
- func StandardLogging(h http.Handler) http.Handler
- func Status(w http.ResponseWriter, r *http.Request)
- func Submit(w http.ResponseWriter, r *http.Request)
- func TwofactorHandler(w http.ResponseWriter, r *http.Request)
- func TwofactorResetHandler(w http.ResponseWriter, r *http.Request)
- func TwofactorVerifyHandler(w http.ResponseWriter, r *http.Request)
- func Validate(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
var ( // APIName ... APIName = "eqip" // APIVersion ... APIVersion = "v1" )
Functions ¶
func AllSections ¶
func AllSections(w http.ResponseWriter, r *http.Request)
AllSections handler will return a JSON object of all currently saved application information specifict to the account.
func BasicAuth ¶
func BasicAuth(w http.ResponseWriter, r *http.Request)
BasicAuth processes a users request to login with a Username and Password
func CORS ¶
CORS Wraps an http handler with logic to handle cors requests. Specifies the allowed origins, methods and headers.
func DecodeJSON ¶
DecodeJSON decodes a request body to the specified interface
func DeleteAttachment ¶
func DeleteAttachment(w http.ResponseWriter, r *http.Request)
DeleteAttachment will removed an attachment for the account.
func EncodeErrJSON ¶
func EncodeErrJSON(w http.ResponseWriter, errors interface{}) error
EncodeErrJSON will return an error in JSON format.
func EncodeJSON ¶
func EncodeJSON(w http.ResponseWriter, data interface{}) error
EncodeJSON encodes any object and writes it to a response writer
func Error ¶
func Error(w http.ResponseWriter, r *http.Request, err error)
Error renders http error information
func GetAttachment ¶
func GetAttachment(w http.ResponseWriter, r *http.Request)
GetAttachment will retrieve an attachment for the account.
func Hash ¶
func Hash(w http.ResponseWriter, r *http.Request)
Hash of the application data used to verify data integrity.
func JwtTokenRefresh ¶
func JwtTokenRefresh(w http.ResponseWriter, r *http.Request)
JwtTokenReferesh refreshes a given token.
func JwtTokenValidatorHandler ¶
func JwtTokenValidatorHandler(w http.ResponseWriter, r *http.Request) error
JwtTokenValidatorHandler will validate a token or return an error.
func RootHandler ¶
func RootHandler(w http.ResponseWriter, r *http.Request)
rootHandler accepts GET requests to get all endpoints that the API supports.
func SamlCallbackHandler ¶
func SamlCallbackHandler(w http.ResponseWriter, r *http.Request)
SamlCallbackHandler is the returning entry point for authentication.
func SamlServiceHandler ¶
func SamlServiceHandler(w http.ResponseWriter, r *http.Request)
SamlServiceHandler is the initial entry point for authentication.
func Save ¶
func Save(w http.ResponseWriter, r *http.Request)
Save a payload of information for the provided account.
func SaveAttachment ¶
func SaveAttachment(w http.ResponseWriter, r *http.Request)
SaveAttachment will store an attachment for the account.
func Section ¶
func Section(w http.ResponseWriter, r *http.Request)
Section returns the data for one section of the application.
func StandardLogging ¶
StandardLogging middleware for HTTP handling.
func Status ¶
func Status(w http.ResponseWriter, r *http.Request)
Status returns the accounts current state.
func Submit ¶
func Submit(w http.ResponseWriter, r *http.Request)
Submit the application package to the external web service for further processing.
func TwofactorHandler ¶
func TwofactorHandler(w http.ResponseWriter, r *http.Request)
TwofactorHandler is the initial entry and subscription for two-factor authentication.
func TwofactorResetHandler ¶
func TwofactorResetHandler(w http.ResponseWriter, r *http.Request)
TwofactorResetHandler allows for multiple factor authentication to be reset. NOTE: This should not be enabled on production environments.
func TwofactorVerifyHandler ¶
func TwofactorVerifyHandler(w http.ResponseWriter, r *http.Request)
TwofactorVerifyHandler verifies a token provided by the end user.
Types ¶
This section is empty.