util

package
v0.0.0-...-dcbdc3c Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTokenCookie

func DeleteTokenCookie(c echo.Context, cfg config.Config)

func GenerateULID

func GenerateULID(ctx context.Context) ulid.ULID

func GenerateULIDNow

func GenerateULIDNow() ulid.ULID

func JSONResponse

func JSONResponse(c echo.Context, code int, data any) error

func MakeRandomStr

func MakeRandomStr(digit int) (string, error)

func SendMail

func SendMail(cfg config.Config, targetAddrs string, title string, body string) error

func SetTokenCookie

func SetTokenCookie(c echo.Context, cfg config.Config, token entity.Token)

func ULIDFromString

func ULIDFromString(id string) (ulid.ULID, error)

func ULIDToString

func ULIDToString(id ulid.ULID) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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