Documentation
¶
Index ¶
Constants ¶
View Source
const MaxAlerts = 10 // define the maximum number of alerts
View Source
const SessionKey = "alerts"
Variables ¶
This section is empty.
Functions ¶
func AlertMiddleware ¶
func AlertMiddleware(store sessions.Store) gin.HandlerFunc
func ClearAlerts ¶
ClearAlerts This could be a function called after rendering the alerts in the template/view
Types ¶
type AlertType ¶
type AlertType string
const ( AlertPrimary AlertType = "alert-primary" AlertSecondary AlertType = "alert-secondary" AlertSuccess AlertType = "alert-success" AlertDanger AlertType = "alert-danger" AlertWarning AlertType = "alert-warning" AlertInfo AlertType = "alert-info" AlertLight AlertType = "alert-light" AlertDark AlertType = "alert-dark" )
Click to show internal directories.
Click to hide internal directories.