action

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeRequestPing        message.Type = 1000
	TypeRequestReplay      message.Type = 1001
	TypeRequestTransaction message.Type = 1002

	TypeResponsePong        message.Type = 2000
	TypeResponseReplay      message.Type = 2001
	TypeResponseTransaction message.Type = 2002

	TypePushTransaction message.Type = 3000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct {
}

type PushTransaction

type PushTransaction struct {
	Id string `json:"id"`
	// Method 请求方法
	Method string `json:"method"`
	// Host 请求主机名
	Host string `json:"host"`
	// Path 请求path
	Path string `json:"path"`
	// Duration 耗时
	Duration time.Duration `json:"duration"`
	// ResponseStatusCode 响应状态码
	ResponseStatusCode int `json:"response_status_code"`
	// Err 错误信息
	ResponseErr string `json:"response_err"`
	// ResponseContentType 响应内容类型
	ResponseContentType string `json:"response_content_type"`
	// ResponseLen 响应长度
	ResponseLen int `json:"response_len"`
}

type RequestReplay

type RequestReplay struct {
	Id string `json:"id"`
}

type RequestTransaction

type RequestTransaction struct {
	Id string `json:"id"`
}

type ResponseReplay

type ResponseReplay struct {
	Err string `json:"err"`
}

type ResponseTransaction

type ResponseTransaction struct {
	*recorder.Transaction
	Err string `json:"err"`
}

Jump to

Keyboard shortcuts

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