package
1.0.1
Repository: https://github.com/crochee/proxy-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

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].
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].
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].
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].
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].
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].
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].
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].