package
Version:
v0.0.0-...-dbcc324
Opens a new window with list of versions in this module.
Published: Jan 5, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Danger(ctx echo.Context, message string)
Danger sets a danger flash message
Get gets flash messages of a given type from the session storage
Errors will logged and not returned
func Info(ctx echo.Context, message string)
Info sets an info flash message
func Set(ctx echo.Context, typ Type, message string)
Set adds a new flash message of a given type into the session storage
Errors will logged and not returned
func Success(ctx echo.Context, message string)
Success sets a success flash message
func Warning(ctx echo.Context, message string)
Warning sets a warning flash message
const (
TypeSuccess Type = "success"
TypeInfo Type = "info"
TypeWarning Type = "warning"
TypeDanger Type = "danger"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.