Documentation
¶
Index ¶
- Variables
- func And(bs []bool) bool
- func Any[X any](xs []X, f func(x X) bool) bool
- func ClearCookie(name string) *http.Cookie
- func EmptyOrAny[X any](xs []X, f func(x X) bool) bool
- func Filter[X any](xs []X, f func(x X) bool) []X
- func HashPassword(pass string) (string, error)
- func MakeCookie(name, value string) *http.Cookie
- func Map[X, Y any](xs []X, f func(x X) Y) []Y
- func Or(bs []bool) bool
- func SignCookie[X any](data X) (*http.Cookie, error)
- func VerifyCookie[X any](cookie *http.Cookie) (*X, error)
- func VerifyPassword(pass, hash string) (bool, error)
- type CookieData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JWT_METHOD = jwt.SigningMethodHS512 JWT_SECRET = make([]byte, 64) )
Functions ¶
func ClearCookie ¶
func EmptyOrAny ¶
func HashPassword ¶
func MakeCookie ¶
func VerifyPassword ¶
Types ¶
type CookieData ¶
type CookieData[X any] struct { jwt.RegisteredClaims Data X }
Click to show internal directories.
Click to hide internal directories.