utils

package
v0.0.0-...-f63a64a Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSessionValue

func AddSessionValue(c echo.Context, name string, key string, value interface{})

func BcryptCompare

func BcryptCompare(password string, hash string) bool

Bcrypt compare password with hash

func BcryptGenerateHash

func BcryptGenerateHash(password string) string

Bcrypt generate hash

func CreateSession

func CreateSession(c echo.Context, name string)

func DeleteSession

func DeleteSession(c echo.Context, name string)

func GetSessionValue

func GetSessionValue(c echo.Context, name string, key string) interface{}

func OnceADay

func OnceADay(fn func(string))

func Render

func Render(c echo.Context, component templ.Component) error

Render temple module

Types

This section is empty.

Jump to

Keyboard shortcuts

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