web

package
v0.0.0-...-e477a49 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HiddenHeader = []string{"User-Agent", "Accept-Encoding", "Referer", "Cache-Control", "Accept-Language", "Pragma"}

Functions

func ConnNum

func ConnNum(writer http.ResponseWriter, _ *http.Request)

func DetailById

func DetailById(writer http.ResponseWriter, request *http.Request)

func Exit

func Exit(_ http.ResponseWriter, _ *http.Request)

func Heartbeat

func Heartbeat(writer http.ResponseWriter, _ *http.Request)

func HostPerformance

func HostPerformance(request *http.Request) ctool.ResultVO[[]PerfPageVo]

func InitClient

func InitClient()

func PacFileApi

func PacFileApi(writer http.ResponseWriter, _ *http.Request)

PacFileApi 默认使用缺省文件,优先使用独立配置文件

func PageListReqHistory

func PageListReqHistory(request *http.Request) ctool.ResultVO[*ctool.PageVO[*core.ReqLog[core.MessageVO]]]

func QueryConfig

func QueryConfig(_ *http.Request) ctool.ResultVO[*core.ProxyConf]

func ReplayRequest

func ReplayRequest(writer http.ResponseWriter, request *http.Request)

func SaveConfig

func SaveConfig(writer http.ResponseWriter, request *http.Request)

func StartQueryServer

func StartQueryServer()

func UrlFrequencyApi

func UrlFrequencyApi(writer http.ResponseWriter, request *http.Request)

func UrlTimeAnalysis

func UrlTimeAnalysis(writer http.ResponseWriter, request *http.Request)

func WritePacFile

func WritePacFile(writer http.ResponseWriter, request *http.Request)

Types

type BenchStat

type BenchStat struct {
	Id       string `json:"id"`
	Total    int    `json:"total"`
	Complete int    `json:"complete"`
	Failed   int    `json:"failed"`
	Con      int    `json:"con"`

	Mills    int64  `json:"mills"`
	Duration string `json:"duration"`

	Qps string `json:"qps"`
	Rt  string `json:"rt"`

	RealMills    int64  `json:"real_mills"` // 实际耗时
	RealDuration string `json:"real_duration"`
	Start        string `json:"start"`
}

type DetailVo

type DetailVo struct {
	Url   string `json:"url"`
	Start string `json:"start"`
	End   string `json:"end"`
}

type PageQueryParam

type PageQueryParam struct {
	Page int `form:"idx"`
	Size int
	Id   string
	Kwd  string
	Date *time.Time `fmt:"2006-01-02"`
}

type PerfPageVo

type PerfPageVo struct {
	Url  string
	Tct  int
	Tall int
	TAvg int
	TP30 int
	TP50 int
	TP90 int
	TP95 int
	TP99 int
	Qps  int // 查询时间段内最大Qps
}

type ReplayCtx

type ReplayCtx struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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