Documentation ¶
Index ¶
- Constants
- func GET(g *gin.RouterGroup, relativePath string, handler HandlerFunc, isOpen bool, ...)
- func Handle(g *gin.RouterGroup, httpMethod string, relativePath string, ...)
- func POST(g *gin.RouterGroup, relativePath string, handler HandlerFunc, isOpen bool, ...)
- func StartHttpServer(cfg *config.CompletedConfig, client kubernetes.Interface)
- type HandlerFunc
Constants ¶
View Source
const ( PathHealthz = "/healthz" PathInnerCheckCoreVersion = "InnerCheckCoreVersion" PathRequestCheckCoreVersion = "RequestCheckCoreVersion" PathGetStandByIp = "GetStandByIp" PathTestConn = "TestConn" )
View Source
const ( PublicAPI = true PrivateAPI = false )
const ...
Variables ¶
This section is empty.
Functions ¶
func GET ¶
func GET(g *gin.RouterGroup, relativePath string, handler HandlerFunc, isOpen bool, comment string)
GET is a shortcut for router.Handle("GET", path, handle).
func Handle ¶
func Handle(g *gin.RouterGroup, httpMethod string, relativePath string, handler HandlerFunc, isOpen bool, comment string)
Handle registers a new request handle
func POST ¶
func POST(g *gin.RouterGroup, relativePath string, handler HandlerFunc, isOpen bool, comment string)
POST is a shortcut for router.Handle("POST", path, handle).
func StartHttpServer ¶
func StartHttpServer(cfg *config.CompletedConfig, client kubernetes.Interface)
Types ¶
Click to show internal directories.
Click to hide internal directories.