logcool

package
v2.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BrowserList = NewBrowsers()

Functions

This section is empty.

Types

type Browers

type Browers struct {
	Spider map[string][]string
	Mobile map[string][]string
	PC     map[string][]string
	Other  map[string][]string
}

func NewBrowsers

func NewBrowsers() *Browers

func (*Browers) AddMobile

func (b *Browers) AddMobile(name string, value string)

func (*Browers) AddOther

func (b *Browers) AddOther(name string, value string)

func (*Browers) AddPC

func (b *Browers) AddPC(name string, value string)

func (*Browers) AddSpider

func (b *Browers) AddSpider(name string, value string)

func (*Browers) Get

func (b *Browers) Get(userAgent string) (string, string)

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 //浏览器访问次数
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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