types

package
v0.0.0-...-674f2a3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	Id   int    `json:"user_id"`
	Role string `json:"user_role"`
}

func NewClaims

func NewClaims(user_id int, role string) *Claims

type JsonResponse

type JsonResponse struct {
	Data any `json:"data"`
	// contains filtered or unexported fields
}

func NewJsonResponse

func NewJsonResponse(Data any, statusCode int) *JsonResponse

func (*JsonResponse) Respond

func (jr *JsonResponse) Respond(w http.ResponseWriter)

Jump to

Keyboard shortcuts

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