utils

package
v0.0.0-...-60955e0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(password string) *misc.RESTError

func FetchUser

func FetchUser(c *fiber.Ctx) *misc.User

func GenerateToken

func GenerateToken(id uint64, tokenTimestamp int64, password string) string

func Hash

func Hash(id uint64, password string) string

func ResolveUser

func ResolveUser(id uint64) *misc.User

func ResolveUsers

func ResolveUsers(ids []uint64) (map[uint64]misc.User, int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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