handlers

package
v0.0.0-...-813563b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizeJWT

func AuthorizeJWT(as internal.AuthService) func(c *gin.Context)

func DeleteUser

func DeleteUser(us internal.UserService) func(c *gin.Context)

func GetUser

func GetUser(us internal.UserService) func(c *gin.Context)

func GetUsers

func GetUsers(us internal.UserService) func(c *gin.Context)

func Health

func Health(c *gin.Context)

func Login

func Login(as internal.AuthService) func(c *gin.Context)

func RefreshToken

func RefreshToken(as internal.AuthService) func(c *gin.Context)

func Register

func Register(us internal.UserService) func(c *gin.Context)

Types

type GetUserRequest

type GetUserRequest struct {
	UserId int64 `uri:"userId"`
}

type GetUserResponse

type GetUserResponse struct {
	User internal.User `json:"user"`
}

type GetUsersRequest

type GetUsersRequest struct {
	Rows int `uri:"rows"`
	Page int `uri:"page"`
}

type GetUsersResponse

type GetUsersResponse struct {
	Users []internal.User `json:"users"`
}

type RegisterRequest

type RegisterRequest struct {
	Id int64 `json:"id"`
}

Jump to

Keyboard shortcuts

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