token

package
v0.0.0-...-8bff5d1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPermits

func CheckPermits(r *http.Request, paramID string) error

CheckPermits cheks if the user is trying to perform and action on his own account (return nil) or not (return error).

func RandString

func RandString(length int) string

RandString returns a random string.

TODO: replace ids with a uuid/guid/ulid

Types

This section is empty.

Jump to

Keyboard shortcuts

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