views

package
v0.0.0-...-d119e2f Latest Latest
Warning

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

Go to latest
Published: May 24, 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/chronologger/issues/35

Functions

func AddFlash

func AddFlash(c echo.Context, message string, flashType FlashType)

Types

type FlashType

type FlashType string
const (
	FlashError   FlashType = "error"
	FlashWarning FlashType = "warning"
	FlashInfo    FlashType = "info"
	FlashSuccess FlashType = "success"
)

type Flashes

type Flashes map[FlashType][]string

func GetFlashes

func GetFlashes(c echo.Context) Flashes

Jump to

Keyboard shortcuts

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