handlers

package
v0.0.0-...-c27ebb6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGetUser

func HandleGetUser(c *gin.Context)

HandleGetUser will handle getuser API.

Types

type AuthUser

type AuthUser struct {
	Name     *string `form:"name" json:"name" xml:"name" binding:"required"`
	Password *[]byte `form:"password" xml:"password" json:"password" binding:"required"`
}

AuthUser represent auth user parsed from body.

type GetUserBody

type GetUserBody struct {
	AuthUser *AuthUser `form:"auth_user" json:"auth_user" xml:"auth_user" binding:"required"`
}

GetUserBody represent body of GetUser method.

type HTTPError

type HTTPError struct {
	Code int
	Msg  gin.H
}

HTTPError represent http error code and msg.

Jump to

Keyboard shortcuts

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