package
2.4.1+incompatible
Repository: https://github.com/go-authboss/authboss.git
Documentation: pkg.go.dev
# Functions
NewErrorHandler constructor.
NewFieldError literally only exists because of poor name planning where name and err can't be exported on the struct due to the method names.
NewHTTPBodyReader creates a form reader with default validation rules and fields for each page.
NewLogger creates a new logger from an io.Writer.
NewLogMailer creates a mailer that doesn't deliver e-mails but simply logs them.
NewRedirector constructor.
NewResponder constructor.
NewRouter creates a new router.
NewSMTPMailer creates an SMTP Mailer to send emails with.
SetCore creates instances of all the default pieces with the exception of ViewRenderer which should be already set before calling this method.
URLValuesToMap helps create a map from url.Values.
# Constants
FormValue types.
FormValue types.
FormValue types.
FormValue types.
FormValue types.
FormValue types.
FormValue types.
FormValue types.
# Structs
ConfirmValues retrieves values on the confirm page.
ErrorHandler wraps http handlers with errors with itself to provide error handling.
FieldError represents an error that occurs during validation and is always attached to field on a form.
HTTPBodyReader reads forms from various pages and decodes them.
HTTPFormValidator validates HTTP post type inputs.
JSONRenderer simply renders the data provided in JSON.
Logger writes exactly once for each log line to underlying io.Writer that's passed in and ends each message with a newline.
LogMailer logs e-mails instead of sending them.
RecoverEndValues for recover_end page.
RecoverMiddleValues for recover_middle page.
RecoverStartValues for recover_start page.
Redirector for http requests.
Responder helps respond to http requests.
Router implementation Does not use a dynamic map to hope to be slightly more performant.
Rules defines a ruleset by which a string can be validated.
SMSTwoFA for sms2fa_validate page.
SMTPMailer uses smtp to actually send e-mails.
TwoFA for totp2fa_validate page.
UserValues from the login form.