controllers

package module
v0.0.0-...-8d19245 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
}

Controller struct

func NewController

func NewController() *Controller

NewController example

func (*Controller) AddJob

func (c *Controller) AddJob(ctx *gin.Context)

AddJob ...

func (*Controller) GetJob

func (c *Controller) GetJob(ctx *gin.Context)

GetJob ...

func (*Controller) Jobs

func (c *Controller) Jobs(ctx *gin.Context)

Jobs ...

func (*Controller) Ping

func (c *Controller) Ping(ctx *gin.Context)

Ping return pong @Summary ping common @Description do ping @Tags common @Accept json @Produce json @Success 200 {string} string "pong" @Failure 400 {string} string "ok" @Failure 404 {string} string "ok" @Failure 500 {string} string "ok" @Router /ping [get]

type ErrorResponse

type ErrorResponse struct {
	Message  string `json:"message" groups:"api" example:"status bad request"`
	Code     int    `json:"code" groups:"api" example:"400"`
	MoreInfo string `json:"more_info" groups:"api" example:"http://"`
}

ErrorResponse used to descrive api error response

type Response

type Response struct {
	Data interface{} `json:"data" groups:"api"`
}

Response used to describe api response

Jump to

Keyboard shortcuts

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