Documentation ¶
Index ¶
- func GetSelectedCluster(c *gin.Context) string
- func WriteJsonData[T any](c *gin.Context, data T)
- func WriteJsonError(c *gin.Context, err error)
- func WriteJsonErrorOrOK(c *gin.Context, err error)
- func WriteJsonList[T any](c *gin.Context, data []T)
- func WriteJsonListTotalWithError[T any](c *gin.Context, total int64, data []T, err error)
- func WriteJsonListWithError[T any](c *gin.Context, data []T, err error)
- func WriteJsonListWithTotal[T any](c *gin.Context, total int64, data []T)
- func WriteJsonOK(c *gin.Context)
- func WriteJsonOKMsg(c *gin.Context, msg string)
- type ListResponse
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSelectedCluster ¶ added in v0.0.19
func WriteJsonData ¶
func WriteJsonError ¶
func WriteJsonErrorOrOK ¶ added in v0.0.9
func WriteJsonList ¶
func WriteJsonListTotalWithError ¶ added in v0.0.19
func WriteJsonListWithError ¶
func WriteJsonListWithTotal ¶
func WriteJsonOK ¶
func WriteJsonOKMsg ¶
Types ¶
type ListResponse ¶
Click to show internal directories.
Click to hide internal directories.