api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRateLimit

func GetRateLimit(ctx *gin.Context)

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

func Heap(ctx *gin.Context)

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

func Index(ctx *gin.Context)

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

func ListSwitch(ctx *gin.Context)

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

func Profile(ctx *gin.Context)

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

func Trace(ctx *gin.Context)

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

func UpdateRateLimit(ctx *gin.Context)

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

func UpdateSwitch(ctx *gin.Context)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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