bizapis

package
v0.0.0-...-1142a2b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

type HandlerFunc

type HandlerFunc func(*context.Context)

HandlerFunc 处理函数

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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