logcounter

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeCounter

type CodeCounter struct {
	Code  uint   // 状态码
	Count uint64 // 数量
}

type Counter

type Counter struct {
	Views       map[string]uint64  //每个网址的浏览器
	Elapsed     map[string]float64 //每个网址的总耗时(秒)
	MaxElapsed  map[string]float64 //每个网址的最大耗时(秒)
	BodyBytes   map[string]uint64  //每个网址的总字节数
	IPs         map[string]uint64  //每个网址的每分钟的IP数量
	UserAgents  map[string][]int64
	StatusCodes map[string][]int64

	//200/301/302/400/403/404/499/500/502/503/504
	StatusCode map[int]uint64    //状态码次数
	Browsers   map[string]uint64 //浏览器访问次数
}

type IPCounter

type IPCounter struct {
	IP     string // IP
	Region string // 地区
	Views  uint64 // 浏览量
}

type RegionCounter

type RegionCounter struct {
	Region  string // 地区
	IPCount uint64 // IP数量
}

type URLCounter

type URLCounter struct {
	URL      string  // 网址
	Views    uint64  // 浏览量
	Elapsed  float64 // 耗时(秒)
	BodySize uint64  // 响应Body尺寸(字节)
	IPCount  uint64  // IP数量
	Code2xx  uint64  // 状态码 2xx 数量
	Code3xx  uint64  // 状态码 3xx 数量
	Code4xx  uint64  // 状态码 4xx 数量
	Code5xx  uint64  // 状态码 5xx 数量
}

Jump to

Keyboard shortcuts

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