helper

package
v0.0.0-...-cadcef1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendJSONResponse

func SendJSONResponse(w http.ResponseWriter, status bool, statusCode int, message string, data map[string]interface{}, opts ...interface{})

SendJSONResponse sends a JSON response

func SignJWT

func SignJWT(id string, exp ...bool) (string, error)

SignJWT signs a JWT with the given address

func VerifyJWT

func VerifyJWT(token string) (*typing.JWTClaims, bool)

VerifyJWT verifies a JWT and returns the claims

Types

This section is empty.

Jump to

Keyboard shortcuts

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