msg

package
v0.0.0-...-dbcc324 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Danger

func Danger(ctx echo.Context, message string)

Danger sets a danger flash message

func Get

func Get(ctx echo.Context, typ Type) []string

Get gets flash messages of a given type from the session storage Errors will logged and not returned

func Info

func Info(ctx echo.Context, message string)

Info sets an info flash message

func Set

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

func Success(ctx echo.Context, message string)

Success sets a success flash message

func Warning

func Warning(ctx echo.Context, message string)

Warning sets a warning flash message

Types

type Type

type Type string
const (
	TypeSuccess Type = "success"
	TypeInfo    Type = "info"
	TypeWarning Type = "warning"
	TypeDanger  Type = "danger"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL