request

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect added in v0.3.0

func Collect(args ...interface{}) []interface{}

func RunMapGCbYGoroutineID added in v0.3.0

func RunMapGCbYGoroutineID(goroutineIDs map[string]bool)

Types

type AgentRegisterReq

type AgentRegisterReq struct {
	AutoCreateProject bool   `json:"autoCreateProject"`
	Name              string `json:"name"`
	Language          string `json:"language"`
	Version           string `json:"version"`
	ProjectName       string `json:"projectName"`
	Hostname          string `json:"hostname"`
	Network           string `json:"network"`
	ContainerName     string `json:"containerName"`
	ContainerVersion  string `json:"containerVersion"`
	ServerAddr        string `json:"serverAddr"`
	ServerPort        string `json:"serverPort"`
	ServerPath        string `json:"serverPath"`
	ServerEnv         string `json:"serverEnv"`
	Pid               string `json:"pid"`
	ProjectVersion    string `json:"projectVersion"`
}

type Api

type Api struct {
	ApiData []ApiData `json:"apiData"`
}

type ApiData

type ApiData struct {
	Uri         string      `json:"uri"`
	Method      []string    `json:"method"`
	Class       string      `json:"class"`
	Parameters  []Parameter `json:"parameters"`
	ReturnType  string      `json:"returnType"`
	File        string      `json:"file"`
	Controller  string      `json:"controller"`
	Description string      `json:"description"`
}

type Component

type Component struct {
	PackagePath      string `json:"packagePath"`
	PackageVersion   string `json:"packageVersion"`
	PackageSignature string `json:"packageSignature"`
	PackageName      string `json:"packageName"`
	PackageAlgorithm string `json:"packageAlgorithm"`
}

type Components added in v0.4.1

type Components struct {
	Packages []Component `json:"packages"`
}

type Detail

type Detail struct {
	AgentId int `json:"agentId"`
	Pant
	Component
	Components
	Function
	Pool
	Log
	Api
}

type Function

type Function struct {
	Uri           string `json:"uri"`
	Url           string `json:"url"`
	Protocol      string `json:"protocol"`
	ContextPath   string `json:"contextPath"`
	Pool          []Pool `json:"pool"`
	Language      string `json:"language"`
	ClientIp      string `json:"clientIp"`
	Secure        bool   `json:"secure"`
	QueryString   string `json:"queryString"`
	ReplayRequest bool   `json:"replayRequest"`
	Method        string `json:"method"`
	ReqHeader     string `json:"reqHeader"`
	ReqBody       string `json:"reqBody"`
	ResBody       string `json:"resBody"`
	Scheme        string `json:"scheme"`
	ResHeader     string `json:"resHeader"`
	TraceId       string `json:"traceId"`
}

type HookRuleReq

type HookRuleReq struct {
	Language string `json:"language"`
}

type Log

type Log struct {
	Log string `json:"log"`
}

type Pant

type Pant struct {
	Disk            string `json:"disk"`
	Memory          string `json:"memory"`
	Cpu             string `json:"cpu"`
	MethodQueue     int    `json:"methodQueue"`
	ReplayQueue     int    `json:"replayQueue"`
	ReqCount        int    `json:"reqCount"`
	ReportQueue     int    `json:"reportQueue"`
	IsCoreInstalled int    `json:"isCoreInstalled"`
	IsCoreRunning   int    `json:"isCoreRunning"`
}

type Parameter

type Parameter struct {
	Name       string `json:"name"`
	Type       string `json:"type"`
	Annotation string `json:"annotation"`
}

type Pool

type Pool struct {
	InvokeId         int           `json:"invokeId"`
	Interfaces       []interface{} `json:"interfaces"`
	TargetHash       []string      `json:"targetHash"`
	TargetValues     string        `json:"targetValues"`
	Signature        string        `json:"signature"`
	OriginClassName  string        `json:"originClassName"`
	SourceValues     string        `json:"sourceValues"`
	MethodName       string        `json:"methodName"`
	ClassName        string        `json:"className"`
	Source           bool          `json:"source"`
	CallerLineNumber int           `json:"callerLineNumber"`
	CallerClass      string        `json:"callerClass"`
	Args             string        `json:"args"`
	CallerMethod     string        `json:"callerMethod"`
	SourceHash       []string      `json:"sourceHash"`
	RetClassName     string        `json:"retClassName"`
	TraceId          string        `json:"traceId"`
	Plugin           string        `json:"plugin"`
}

func FmtHookPool added in v0.3.0

func FmtHookPool(p PoolReq) Pool

type PoolReq

type PoolReq struct {
	Source          bool
	OriginClassName string
	MethodName      string
	ClassName       string
	Args            []interface{}
	Reqs            []interface{}
	NeedHook        []interface{}
	NeedCatch       []interface{}
	ArgsStr         string
	TraceId         string
	Plugin          string
}

type PoolTree

type PoolTree struct {
	*Pool
	Begin       bool
	GoroutineID string
	Children    []*PoolTree
}

func (*PoolTree) FMT

func (p *PoolTree) FMT(pools *[]Pool, w *utils.Worker, goroutineIDs map[string]bool, TraceId string)

func (*PoolTree) IsThisBegin

func (p *PoolTree) IsThisBegin(GoroutineID string) bool

type UploadReq

type UploadReq struct {
	Type     int    `json:"type"`
	Detail   Detail `json:"detail"`
	InvokeId int    `json:"invokeId"`
}

UploadReq

Type

数据类型,可选择: 1 - Agent心跳数据 17 - 依赖组件数据 36 - 方法调用数据

Jump to

Keyboard shortcuts

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