flash

package
v0.0.0-...-22b9301 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SessionStore = sessions.NewCookieStore([]byte("secret"))

TODO: Move Secret to ENV https://github.com/hay-i/gooal/issues/35

Functions

func Add

func Add(c echo.Context, message string, flashType Type)

Types

type Flashes

type Flashes map[Type][]string

func Get

func Get(c echo.Context) Flashes

type Type

type Type string
const (
	Error   Type = "error"
	Warning Type = "warning"
	Info    Type = "info"
	Success Type = "success"
)

Jump to

Keyboard shortcuts

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