handler

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableMachine

func DisableMachine(ctx *gin.Context)

func DisableUser

func DisableUser(ctx *gin.Context)

func EnabledMachine

func EnabledMachine(ctx *gin.Context)

func EnabledUser

func EnabledUser(ctx *gin.Context)

func Info

func Info(ctx *gin.Context)

func ListLogger

func ListLogger(ctx *gin.Context)

func ListLoggerTypes

func ListLoggerTypes(ctx *gin.Context)

func ListMachines

func ListMachines(ctx *gin.Context)

func ListTokens

func ListTokens(ctx *gin.Context)

func ListUser

func ListUser(ctx *gin.Context)

func Login

func Login(ctx *gin.Context)

func RegisterNewUser

func RegisterNewUser(ctx *gin.Context)

func UpdateLevelUser

func UpdateLevelUser(ctx *gin.Context)

func UpdateUserPassword

func UpdateUserPassword(ctx *gin.Context)

func UserDetails

func UserDetails(ctx *gin.Context)

func UsernameExistVerify

func UsernameExistVerify(ctx *gin.Context)

func ValidMachine

func ValidMachine(ctx *gin.Context)

Types

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type RegisterUserRequest

type RegisterUserRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type UpdateLevelRequestBody

type UpdateLevelRequestBody struct {
	Level int
	Id    int
}

type UpdateUserRequest

type UpdateUserRequest struct {
	Password string `json:"password"`
}

type ValidMachineJsonResponse

type ValidMachineJsonResponse struct {
	Status      string `json:"status"`
	Message     string `json:"message"`
	MachineId   string `json:"machine_id"`
	MachineName string `json:"machine_name"`
	Id          int    `json:"id"`
}

Jump to

Keyboard shortcuts

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