controllers

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsciiJSON

func AsciiJSON(c *gin.Context)

func CheckSitesHealth

func CheckSitesHealth(c *gin.Context)

func CountAlias2data added in v1.2.0

func CountAlias2data(c *gin.Context)

func CreateAlias2data

func CreateAlias2data(c *gin.Context)

func CreateTask

func CreateTask(c *gin.Context)

func CreateTiny added in v1.2.0

func CreateTiny(c *gin.Context)

func CreateUser

func CreateUser(c *gin.Context)

func DeleteTask

func DeleteTask(c *gin.Context)

func DeleteUser

func DeleteUser(c *gin.Context)

func FormHandler

func FormHandler(c *gin.Context)

func GetDataB

func GetDataB(c *gin.Context)

func GetDataByAlias

func GetDataByAlias(c *gin.Context)

func GetTag added in v1.2.0

func GetTag(c *gin.Context)

func GetTaskById

func GetTaskById(c *gin.Context)

GetTaskById godoc @Summary Retrieves task based on given ID @Description get Task by ID @Produce json @Param id path integer true "Task ID" @Success 200 {object} tasks.Task @Router /api/tasks/{id} [get] @Security Authorization Token

func GetTasks

func GetTasks(c *gin.Context)

GetTasks godoc @Summary Retrieves tasks based on query @Description Get Tasks @Produce json @Param taskname query string false "Taskname" @Param firstname query string false "Firstname" @Param lastname query string false "Lastname" @Success 200 {array} []tasks.Task @Router /api/tasks [get] @Security Authorization Token

func GetTiny added in v1.2.0

func GetTiny(c *gin.Context)

func GetUserById

func GetUserById(c *gin.Context)

GetUserById godoc @Summary Retrieves user based on given ID @Description get User by ID @Produce json @Param id path integer true "User ID" @Success 200 {object} users.User @Router /api/users/{id} [get] @Security Authorization Token

func GetUsers

func GetUsers(c *gin.Context)

GetUsers godoc @Summary Retrieves users based on query @Description Get Users @Produce json @Param username query string false "Username" @Param firstname query string false "Firstname" @Param lastname query string false "Lastname" @Success 200 {array} []users.User @Router /api/users [get] @Security Authorization Token

func Index0920

func Index0920(c *gin.Context)

func JSONP0920

func JSONP0920(c *gin.Context)

func Login

func Login(c *gin.Context)

func Middleware0920

func Middleware0920(c *gin.Context)

func NameId0920

func NameId0920(c *gin.Context)

func Ping

func Ping(c *gin.Context)

func PostformParameters

func PostformParameters(c *gin.Context)

func RedirectTiny added in v1.2.0

func RedirectTiny(c *gin.Context)

func RestyPing

func RestyPing(c *gin.Context)

func RunCheck

func RunCheck()

func StartPage

func StartPage(c *gin.Context)

func UpdateTask

func UpdateTask(c *gin.Context)

func UpdateUser

func UpdateUser(c *gin.Context)

Types

type LoginInput

type LoginInput struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type Person

type Person struct {
	Name     string    `form:"name"`
	Address  string    `form:"address"`
	Birthday time.Time `form:"birthday" time_format:"2006-01-02" time_utc:"1"`
}

type PersonBindUrl

type PersonBindUrl struct {
	ID   string `uri:"id" binding:"required,uuid"`
	Name string `uri:"name" binding:"required"`
}

type StructA

type StructA struct {
	FieldA string `form:"field_a"`
}

Struct - begin

type StructB

type StructB struct {
	NestedStruct StructA
	FieldB       string `form:"field_b"`
}

type UserInput

type UserInput struct {
	Username  string `json:"username" binding:"required"`
	Lastname  string `json:"lastname"`
	Firstname string `json:"firstname"`
	Password  string `json:"password" binding:"required"`
	Role      string `json:"role"`
}

Jump to

Keyboard shortcuts

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