Documentation ¶
Index ¶
- Constants
- Variables
- func Authorization(c *gin.Context)
- func CancelRedisSubscribe(c *gin.Context)
- func InitRouter() *gin.Engine
- func LocalCacheStats(c *gin.Context)
- func Ping(c *gin.Context)
- func PprofCmdline(c *gin.Context)
- func PprofHandler(c *gin.Context)
- func PprofIndex(c *gin.Context)
- func PprofProfile(c *gin.Context)
- func PprofSymbol(c *gin.Context)
- func PprofTrace(c *gin.Context)
- func Recovery(c *gin.Context, recovered interface{})
- func RedisPoolStats(c *gin.Context)
- func RedisSubscribes(c *gin.Context)
- type ResponseEntity
Constants ¶
View Source
const (
MsgOK = "ok"
)
Variables ¶
View Source
var ( OK = ResponseEntity{ Code: http.StatusOK, Msg: MsgOK, } )
Functions ¶
func Authorization ¶
func CancelRedisSubscribe ¶
CancelRedisSubscribe 取消指定通道的redis订阅
func PprofCmdline ¶
func PprofHandler ¶
func PprofIndex ¶
func PprofProfile ¶
func PprofSymbol ¶
func PprofTrace ¶
Types ¶
type ResponseEntity ¶
type ResponseEntity struct { Code int `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data,omitempty"` }
func ResponseError ¶
func ResponseError(errMsg string) *ResponseEntity
func ResponseOK ¶
func ResponseOK(data interface{}) *ResponseEntity
Click to show internal directories.
Click to hide internal directories.