Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlashMessage ¶
func FlashMessage(c *rex.Context, message string, messageType ...FlashMessageType) error
Helper fucntion to set a flash message in session. default messageType is error.
func FlashMessageMiddleware ¶
func FlashMessageMiddleware() rex.Middleware
FlashMessageMiddleware is a middleware that sets the flash message in the context
Types ¶
type Flash ¶
type Flash struct { Message string // Message for the flash Type string // success, info, warning, error }
Flash message types
type FlashMessageType ¶
type FlashMessageType int
const ( MessageSuccess FlashMessageType = iota MessageInfo MessageWarning MessageError )
Click to show internal directories.
Click to hide internal directories.