controller

package
v0.0.0-...-72c8848 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGetStatus

func HandleGetStatus(c *gin.Context)

HandleGetStatus handles the GET /status API.

func WriteErrorResponse

func WriteErrorResponse(c *gin.Context, message string)

WriteErrorResponse writes an error response to the client.

func WriteErrorResponseByErrorRequest

func WriteErrorResponseByErrorRequest(c *gin.Context)

WriteErrorResponseByErrorRequest writes an error response to the client for invalid request.

func WriteSimpleSuccessResponse

func WriteSimpleSuccessResponse(c *gin.Context)

WriteSimpleSuccessResponse writes a simple success response to the client.

func WriteSuccessResponse

func WriteSuccessResponse(c *gin.Context, data interface{})

WriteSuccessResponse writes a success response to the client.

Types

type RespStatus

type RespStatus struct {
	Version     string `json:"version"`
	BuildTime   string `json:"build_time"`
	GitBranch   string `json:"git_branch"`
	GitRevision string `json:"git_revision"`
}

Jump to

Keyboard shortcuts

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