Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRateLimit ¶
GetRateLimit godoc @Summary get rate limit @Description get rate limit middleware config @Tags middleware @Accept application/json @Produce application/json @Success 200 {object} dynamic.RateLimit @Failure 400 {object} response.Response @Failure 500 {object} response.Response @Router /api/v1/mid/limit [get]
func Heap ¶
Heap godoc @Summary pprof heap @Description get pprof heap @Tags pprof @Accept application/json @Produce application/octet-stream @Param debug query int false "second default(30)" @Success 200 @Failure 400 {object} response.Response @Failure 500 {object} response.Response @Router /debug/pprof/heap [get]
func Index ¶
Profile godoc @Summary pprof profile @Description get pprof profile @Tags pprof @Accept application/json @Produce application/octet-stream @Param seconds query string false "second default(30)" @Success 200 @Failure 400 {object} response.Response @Failure 500 {object} response.Response @Router /debug/pprof/index [get]
func ListSwitch ¶
ListSwitch godoc @Summary list switch @Description list switch middleware config @Tags middleware @Accept application/json @Produce application/json @Success 200 {array} dynamic.Switch @Failure 400 {object} response.Response @Failure 500 {object} response.Response @Router /api/v1/mid/switch [get]
func Profile ¶
Profile godoc @Summary pprof profile @Description get pprof profile @Tags pprof @Accept application/json @Produce application/octet-stream @Param seconds query float false "second default(30)" @Success 200 @Failure 400 {object} response.Response @Failure 500 {object} response.Response @Router /debug/pprof/profile [get]
func Trace ¶
Trace godoc @Summary pprof trace @Description get pprof trace @Tags pprof @Accept application/json @Produce application/octet-stream @Param seconds query float false "second default(30)" @Success 200 @Failure 400 {object} response.Response @Failure 500 {object} response.Response @Router /debug/pprof/trace [get]
func UpdateRateLimit ¶
UpdateRateLimit godoc @Summary update rate limit @Description update rate limit middleware config @Tags middleware @Accept application/json @Produce application/json @Param request body dynamic.RateLimit true "rate limit config" @Success 200 @Failure 400 {object} response.Response @Failure 500 {object} response.Response @Router /api/v1/mid/limit [post]
func UpdateSwitch ¶
UpdateSwitch godoc @Summary update switch @Description update switch middleware config @Tags middleware @Accept application/json @Produce application/json @Param request body dynamic.Switch true "switch config" @Success 200 @Failure 400 {object} response.Response @Failure 500 {object} response.Response @Router /api/v1/mid/switch [post]
Types ¶
This section is empty.