Documentation ¶
Index ¶
- func AuthLoginPage(location string, s Refiber) error
- func AuthRedirection(s Refiber, location string) error
- func AuthRedirectionWithMessage(s Refiber, location string, messageType MessageType, message string) error
- func GetSharedMap(session *session.Session) *fiber.Map
- func NewSupport(session *session.Store, validate *validator.Validate, ...) *support
- type MessageType
- type Refiber
- type ValidationErrorField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthLoginPage ¶
func AuthRedirection ¶
func AuthRedirectionWithMessage ¶
func AuthRedirectionWithMessage(s Refiber, location string, messageType MessageType, message string) error
func GetSharedMap ¶
TODO: make this customizeable
func NewSupport ¶
func NewSupport(session *session.Store, validate *validator.Validate, translator *ut.Translator) *support
Types ¶
type MessageType ¶
type MessageType string
const ( MessageTypeInfo MessageType = "info" MessageTypeError MessageType = "error" MessageTypeWarning MessageType = "warning" MessageTypeSuccess MessageType = "success" )
type Refiber ¶
type Refiber interface { Render() *render Validate(s interface{}) error CreateValidationErrors(fields []*ValidationErrorField) error NewAuthenticatedUserSession(user interface{}) error UpdateAuthenticatedUserSession(user interface{}) error GetAuthenticatedUserSession(user interface{}) error DestroyAuthenticatedUserSession() error GetSession() *session.Store GetValidate() *validator.Validate GetTranslator() *ut.Translator Redirect() *redirect GetCtx() *fiber.Ctx }
type ValidationErrorField ¶
Click to show internal directories.
Click to hide internal directories.