apis

package
v2.0.0-...-cc31bfa Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ping

func Ping(c *gin.Context)
 Ping godoc
	@Summary	ping to check server status
	@Schemes
	@Description	do ping
	@Tags			/health
	@Accept			json
	@Produce		json
	@Success		200	{object}	JSONResult
	@Router			/health/ping [get]

Types

type App

type App struct {
	Db       *gorm.DB
	Validate *validator.Validate
}

func New

func New() *App

func (*App) Close

func (a *App) Close()

func (*App) GetRouter

func (a *App) GetRouter() *gin.Engine

func (*App) Start

func (a *App) Start()

type JSONResult

type JSONResult struct {
	Code    int         `json:"code" `
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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