log

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessBeforeRequest

func ProcessBeforeRequest(req *teaproxy.Request, writer *teaproxy.ResponseWriter) bool

请求Hook

Types

type CookiesAction

type CookiesAction actions.Action

func (*CookiesAction) Run

func (this *CookiesAction) Run(params struct {
	LogId string
	Day   string
})

type DayAction

type DayAction actions.Action

func (*DayAction) Run

func (this *DayAction) Run(params struct {
	ServerId string
	Day      string
	LogType  string
	FromId   string
	Page     int
	Size     int
	SearchIP string
})

某天的日志

type Helper

type Helper struct {
}

func (*Helper) BeforeAction

func (this *Helper) BeforeAction(action *actions.ActionObject)

type HistoryAction

type HistoryAction actions.Action

func (*HistoryAction) Run

func (this *HistoryAction) Run(params struct {
	ServerId string
})

历史日志

type IndexAction

type IndexAction actions.Action

func (*IndexAction) Run

func (this *IndexAction) Run(params struct {
	ServerId string
	LogType  string
})

type ListAction

type ListAction actions.Action

func (*ListAction) Run

func (this *ListAction) Run(params struct {
	ServerId string
	FromId   string
	Size     int `default:"10"`

	RemoteAddr string  // 终端地址
	Domain     string  // 域名
	OsName     string  // 终端OS
	Browser    string  // 终端浏览器
	Cost       float64 // 耗时
	Keyword    string  // 关键词
	BackendId  string  // 后端服务器
	LocationId string  // 路径规则
	RewriteId  string  // 重写规则
	FastcgiId  string  // FastcgiId

	BodyFetching bool
	LogType      string
})

获取日志

type RequestHeaderAction

type RequestHeaderAction actions.Action

func (*RequestHeaderAction) Run

func (this *RequestHeaderAction) Run(params struct {
	LogId string
	Day   string
})

请求Header

type ResponseBodyAction

type ResponseBodyAction actions.Action

func (*ResponseBodyAction) Run

func (this *ResponseBodyAction) Run(params struct {
	LogId string
	Day   string
})

响应Body

type ResponseHeaderAction

type ResponseHeaderAction actions.Action

func (*ResponseHeaderAction) Run

func (this *ResponseHeaderAction) Run(params struct {
	LogId string
	Day   string
})

响应Header

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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