Documentation
¶
Index ¶
- Constants
- Variables
- func GenControlConvergedHandlers() map[string][]Handler
- func GetReqId(c *gin.Context) string
- func GetRoleHandlers(role string) map[string][]Handler
- func ParseBody(c *gin.Context) []byte
- func RegisterHandlersToRoles(module string, handlers []Handler, rolesToRegister ...string)
- func SetBadRequest(c *gin.Context, err error)
- func SetInternalServerError(c *gin.Context, err error)
- func SetRedirect(c *gin.Context, redirectUrl string)
- func SetStatusAccepted(c *gin.Context, msg string)
- func SetStatusConflict(c *gin.Context, err error)
- func SetStatusCreated(c *gin.Context, msg string, data any)
- func SetStatusNotFound(c *gin.Context, err error)
- func SetStatusOk(c *gin.Context, msg string, data any)
- func SetUnauthorized(c *gin.Context, err error)
- type ComputeStatistic
- type Handler
- type Node
- type SpaceStatistic
- type SupportFileList
- type TuningList
Constants ¶
View Source
const ( API = "api" Code = "code" Status = "status" Msg = "msg" Data = "data" )
Variables ¶
Functions ¶
func GetRoleHandlers ¶
func RegisterHandlersToRoles ¶
func SetBadRequest ¶
func SetInternalServerError ¶
func SetRedirect ¶
func SetStatusAccepted ¶
func SetStatusConflict ¶
func SetStatusNotFound ¶
func SetUnauthorized ¶
Types ¶
type ComputeStatistic ¶
type Handler ¶
type Handler struct { Version string Method string Path string Func gin.HandlerFunc IsNotUnderDataCenter bool }
func (Handler) IsUnderDataCenter ¶
type SpaceStatistic ¶
type SupportFileList ¶
type TuningList ¶
Click to show internal directories.
Click to hide internal directories.