Documentation ¶
Index ¶
- Variables
- func FindAllStatFilters() []maps.Map
- func RegisterFilter(filters ...FilterInterface)
- func RestartServerFilters(serverId string, codes []string)
- type BackendAllPeriodFilter
- func (this *BackendAllPeriodFilter) Codes() []string
- func (this *BackendAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *BackendAllPeriodFilter) Indexes() []string
- func (this *BackendAllPeriodFilter) Name() string
- func (this *BackendAllPeriodFilter) Start(queue *Queue, code string)
- func (this *BackendAllPeriodFilter) Stop()
- type BrowserAllPeriodFilter
- func (this *BrowserAllPeriodFilter) Codes() []string
- func (this *BrowserAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *BrowserAllPeriodFilter) Indexes() []string
- func (this *BrowserAllPeriodFilter) Name() string
- func (this *BrowserAllPeriodFilter) Start(queue *Queue, code string)
- func (this *BrowserAllPeriodFilter) Stop()
- type CityAllPeriodFilter
- func (this *CityAllPeriodFilter) Codes() []string
- func (this *CityAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *CityAllPeriodFilter) Indexes() []string
- func (this *CityAllPeriodFilter) Name() string
- func (this *CityAllPeriodFilter) Start(queue *Queue, code string)
- func (this *CityAllPeriodFilter) Stop()
- type CostAllPeriodFilter
- func (this *CostAllPeriodFilter) Codes() []string
- func (this *CostAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *CostAllPeriodFilter) Indexes() []string
- func (this *CostAllPeriodFilter) Name() string
- func (this *CostAllPeriodFilter) Start(queue *Queue, code string)
- func (this *CostAllPeriodFilter) Stop()
- type CostPagePeriodFilter
- func (this *CostPagePeriodFilter) Codes() []string
- func (this *CostPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *CostPagePeriodFilter) Indexes() []string
- func (this *CostPagePeriodFilter) Name() string
- func (this *CostPagePeriodFilter) Start(queue *Queue, code string)
- func (this *CostPagePeriodFilter) Stop()
- type CounterFilter
- func (this *CounterFilter) ApplyFilter(accessLog *accesslogs.AccessLog, params map[string]string, ...)
- func (this *CounterFilter) CheckNewIP(accessLog *accesslogs.AccessLog, attachKey string) bool
- func (this *CounterFilter) CheckNewUV(accessLog *accesslogs.AccessLog, attachKey string) bool
- func (this *CounterFilter) StartFilter(code string, period stats.ValuePeriod)
- func (this *CounterFilter) StopFilter()
- type CounterValue
- type DeviceAllPeriodFilter
- func (this *DeviceAllPeriodFilter) Codes() []string
- func (this *DeviceAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *DeviceAllPeriodFilter) Indexes() []string
- func (this *DeviceAllPeriodFilter) Name() string
- func (this *DeviceAllPeriodFilter) Start(queue *Queue, code string)
- func (this *DeviceAllPeriodFilter) Stop()
- type FastcgiAllPeriodFilter
- func (this *FastcgiAllPeriodFilter) Codes() []string
- func (this *FastcgiAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *FastcgiAllPeriodFilter) Indexes() []string
- func (this *FastcgiAllPeriodFilter) Name() string
- func (this *FastcgiAllPeriodFilter) Start(queue *Queue, code string)
- func (this *FastcgiAllPeriodFilter) Stop()
- type FilterInterface
- type IPAllPeriodFilter
- func (this *IPAllPeriodFilter) Codes() []string
- func (this *IPAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *IPAllPeriodFilter) Indexes() []string
- func (this *IPAllPeriodFilter) Name() string
- func (this *IPAllPeriodFilter) Start(queue *Queue, code string)
- func (this *IPAllPeriodFilter) Stop()
- type IPPagePeriodFilter
- func (this *IPPagePeriodFilter) Codes() []string
- func (this *IPPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *IPPagePeriodFilter) Indexes() []string
- func (this *IPPagePeriodFilter) Name() string
- func (this *IPPagePeriodFilter) Start(queue *Queue, code string)
- func (this *IPPagePeriodFilter) Stop()
- type KVStorage
- type LandingPagePeriodFilter
- func (this *LandingPagePeriodFilter) Codes() []string
- func (this *LandingPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *LandingPagePeriodFilter) Indexes() []string
- func (this *LandingPagePeriodFilter) Name() string
- func (this *LandingPagePeriodFilter) Start(queue *Queue, code string)
- func (this *LandingPagePeriodFilter) Stop()
- type LocationAllPeriodFilter
- func (this *LocationAllPeriodFilter) Codes() []string
- func (this *LocationAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *LocationAllPeriodFilter) Indexes() []string
- func (this *LocationAllPeriodFilter) Name() string
- func (this *LocationAllPeriodFilter) Start(queue *Queue, code string)
- func (this *LocationAllPeriodFilter) Stop()
- type MethodAllPeriodFilter
- func (this *MethodAllPeriodFilter) Codes() []string
- func (this *MethodAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *MethodAllPeriodFilter) Indexes() []string
- func (this *MethodAllPeriodFilter) Name() string
- func (this *MethodAllPeriodFilter) Start(queue *Queue, code string)
- func (this *MethodAllPeriodFilter) Stop()
- type MethodPagePeriodFilter
- func (this *MethodPagePeriodFilter) Codes() []string
- func (this *MethodPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *MethodPagePeriodFilter) Indexes() []string
- func (this *MethodPagePeriodFilter) Name() string
- func (this *MethodPagePeriodFilter) Start(queue *Queue, code string)
- func (this *MethodPagePeriodFilter) Stop()
- type OSAllPeriodFilter
- func (this *OSAllPeriodFilter) Codes() []string
- func (this *OSAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *OSAllPeriodFilter) Indexes() []string
- func (this *OSAllPeriodFilter) Name() string
- func (this *OSAllPeriodFilter) Start(queue *Queue, code string)
- func (this *OSAllPeriodFilter) Stop()
- type PVAllPeriodFilter
- func (this *PVAllPeriodFilter) Codes() []string
- func (this *PVAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *PVAllPeriodFilter) Indexes() []string
- func (this *PVAllPeriodFilter) Name() string
- func (this *PVAllPeriodFilter) Start(queue *Queue, code string)
- func (this *PVAllPeriodFilter) Stop()
- type PVPagePeriodFilter
- func (this *PVPagePeriodFilter) Codes() []string
- func (this *PVPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *PVPagePeriodFilter) Indexes() []string
- func (this *PVPagePeriodFilter) Name() string
- func (this *PVPagePeriodFilter) Start(queue *Queue, code string)
- func (this *PVPagePeriodFilter) Stop()
- type ProvinceAllPeriodFilter
- func (this *ProvinceAllPeriodFilter) Codes() []string
- func (this *ProvinceAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *ProvinceAllPeriodFilter) Indexes() []string
- func (this *ProvinceAllPeriodFilter) Name() string
- func (this *ProvinceAllPeriodFilter) Start(queue *Queue, code string)
- func (this *ProvinceAllPeriodFilter) Stop()
- type Queue
- type Rank
- type RankValue
- type RefererDomainPeriodFilter
- func (this *RefererDomainPeriodFilter) Codes() []string
- func (this *RefererDomainPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *RefererDomainPeriodFilter) Indexes() []string
- func (this *RefererDomainPeriodFilter) Name() string
- func (this *RefererDomainPeriodFilter) Start(queue *Queue, code string)
- func (this *RefererDomainPeriodFilter) Stop()
- type RefererURLPeriodFilter
- func (this *RefererURLPeriodFilter) Codes() []string
- func (this *RefererURLPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *RefererURLPeriodFilter) Indexes() []string
- func (this *RefererURLPeriodFilter) Name() string
- func (this *RefererURLPeriodFilter) Start(queue *Queue, code string)
- func (this *RefererURLPeriodFilter) Stop()
- type RegionAllPeriodFilter
- func (this *RegionAllPeriodFilter) Codes() []string
- func (this *RegionAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *RegionAllPeriodFilter) Indexes() []string
- func (this *RegionAllPeriodFilter) Name() string
- func (this *RegionAllPeriodFilter) Start(queue *Queue, code string)
- func (this *RegionAllPeriodFilter) Stop()
- type RequestAllPeriodFilter
- func (this *RequestAllPeriodFilter) Codes() []string
- func (this *RequestAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *RequestAllPeriodFilter) Indexes() []string
- func (this *RequestAllPeriodFilter) Name() string
- func (this *RequestAllPeriodFilter) Start(queue *Queue, code string)
- func (this *RequestAllPeriodFilter) Stop()
- type RequestIPPeriodFilter
- func (this *RequestIPPeriodFilter) Codes() []string
- func (this *RequestIPPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *RequestIPPeriodFilter) Indexes() []string
- func (this *RequestIPPeriodFilter) Name() string
- func (this *RequestIPPeriodFilter) Start(queue *Queue, code string)
- func (this *RequestIPPeriodFilter) Stop()
- type RequestPagePeriodFilter
- func (this *RequestPagePeriodFilter) Codes() []string
- func (this *RequestPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *RequestPagePeriodFilter) Indexes() []string
- func (this *RequestPagePeriodFilter) Name() string
- func (this *RequestPagePeriodFilter) Start(queue *Queue, code string)
- func (this *RequestPagePeriodFilter) Stop()
- type RewriteAllPeriodFilter
- func (this *RewriteAllPeriodFilter) Codes() []string
- func (this *RewriteAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *RewriteAllPeriodFilter) Indexes() []string
- func (this *RewriteAllPeriodFilter) Name() string
- func (this *RewriteAllPeriodFilter) Start(queue *Queue, code string)
- func (this *RewriteAllPeriodFilter) Stop()
- type ServerQueue
- type StatusAllPeriodFilter
- func (this *StatusAllPeriodFilter) Codes() []string
- func (this *StatusAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *StatusAllPeriodFilter) Indexes() []string
- func (this *StatusAllPeriodFilter) Name() string
- func (this *StatusAllPeriodFilter) Start(queue *Queue, code string)
- func (this *StatusAllPeriodFilter) Stop()
- type StatusPagePeriodFilter
- func (this *StatusPagePeriodFilter) Codes() []string
- func (this *StatusPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *StatusPagePeriodFilter) Indexes() []string
- func (this *StatusPagePeriodFilter) Name() string
- func (this *StatusPagePeriodFilter) Start(queue *Queue, code string)
- func (this *StatusPagePeriodFilter) Stop()
- type TrafficAllPeriodFilter
- func (this *TrafficAllPeriodFilter) Codes() []string
- func (this *TrafficAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *TrafficAllPeriodFilter) Indexes() []string
- func (this *TrafficAllPeriodFilter) Name() string
- func (this *TrafficAllPeriodFilter) Start(queue *Queue, code string)
- func (this *TrafficAllPeriodFilter) Stop()
- type TrafficPagePeriodFilter
- func (this *TrafficPagePeriodFilter) Codes() []string
- func (this *TrafficPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *TrafficPagePeriodFilter) Indexes() []string
- func (this *TrafficPagePeriodFilter) Name() string
- func (this *TrafficPagePeriodFilter) Start(queue *Queue, code string)
- func (this *TrafficPagePeriodFilter) Stop()
- type UVAllPeriodFilter
- func (this *UVAllPeriodFilter) Codes() []string
- func (this *UVAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *UVAllPeriodFilter) Indexes() []string
- func (this *UVAllPeriodFilter) Name() string
- func (this *UVAllPeriodFilter) Start(queue *Queue, code string)
- func (this *UVAllPeriodFilter) Stop()
- type UVPagePeriodFilter
- func (this *UVPagePeriodFilter) Codes() []string
- func (this *UVPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
- func (this *UVPagePeriodFilter) Indexes() []string
- func (this *UVPagePeriodFilter) Name() string
- func (this *UVPagePeriodFilter) Start(queue *Queue, code string)
- func (this *UVPagePeriodFilter) Stop()
Constants ¶
This section is empty.
Variables ¶
View Source
var AllStartedServers = maps.Map{} // serverId => *ServerQueue
View Source
var AllStatFilters = []maps.Map{}
Functions ¶
Types ¶
type BackendAllPeriodFilter ¶
type BackendAllPeriodFilter struct {
CounterFilter
}
后端统计
func (*BackendAllPeriodFilter) Codes ¶
func (this *BackendAllPeriodFilter) Codes() []string
func (*BackendAllPeriodFilter) Filter ¶
func (this *BackendAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*BackendAllPeriodFilter) Indexes ¶
func (this *BackendAllPeriodFilter) Indexes() []string
func (*BackendAllPeriodFilter) Name ¶
func (this *BackendAllPeriodFilter) Name() string
func (*BackendAllPeriodFilter) Start ¶
func (this *BackendAllPeriodFilter) Start(queue *Queue, code string)
func (*BackendAllPeriodFilter) Stop ¶
func (this *BackendAllPeriodFilter) Stop()
type BrowserAllPeriodFilter ¶
type BrowserAllPeriodFilter struct {
CounterFilter
}
浏览器统计
func (*BrowserAllPeriodFilter) Codes ¶
func (this *BrowserAllPeriodFilter) Codes() []string
func (*BrowserAllPeriodFilter) Filter ¶
func (this *BrowserAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*BrowserAllPeriodFilter) Indexes ¶
func (this *BrowserAllPeriodFilter) Indexes() []string
func (*BrowserAllPeriodFilter) Name ¶
func (this *BrowserAllPeriodFilter) Name() string
func (*BrowserAllPeriodFilter) Start ¶
func (this *BrowserAllPeriodFilter) Start(queue *Queue, code string)
func (*BrowserAllPeriodFilter) Stop ¶
func (this *BrowserAllPeriodFilter) Stop()
type CityAllPeriodFilter ¶
type CityAllPeriodFilter struct {
CounterFilter
}
城市统计
func (*CityAllPeriodFilter) Codes ¶
func (this *CityAllPeriodFilter) Codes() []string
func (*CityAllPeriodFilter) Filter ¶
func (this *CityAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*CityAllPeriodFilter) Indexes ¶
func (this *CityAllPeriodFilter) Indexes() []string
func (*CityAllPeriodFilter) Name ¶
func (this *CityAllPeriodFilter) Name() string
func (*CityAllPeriodFilter) Start ¶
func (this *CityAllPeriodFilter) Start(queue *Queue, code string)
func (*CityAllPeriodFilter) Stop ¶
func (this *CityAllPeriodFilter) Stop()
type CostAllPeriodFilter ¶
type CostAllPeriodFilter struct {
CounterFilter
}
耗时统计
func (*CostAllPeriodFilter) Codes ¶
func (this *CostAllPeriodFilter) Codes() []string
func (*CostAllPeriodFilter) Filter ¶
func (this *CostAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*CostAllPeriodFilter) Indexes ¶
func (this *CostAllPeriodFilter) Indexes() []string
func (*CostAllPeriodFilter) Name ¶
func (this *CostAllPeriodFilter) Name() string
func (*CostAllPeriodFilter) Start ¶
func (this *CostAllPeriodFilter) Start(queue *Queue, code string)
func (*CostAllPeriodFilter) Stop ¶
func (this *CostAllPeriodFilter) Stop()
type CostPagePeriodFilter ¶
type CostPagePeriodFilter struct {
CounterFilter
}
耗时统计
func (*CostPagePeriodFilter) Codes ¶
func (this *CostPagePeriodFilter) Codes() []string
func (*CostPagePeriodFilter) Filter ¶
func (this *CostPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*CostPagePeriodFilter) Indexes ¶
func (this *CostPagePeriodFilter) Indexes() []string
func (*CostPagePeriodFilter) Name ¶
func (this *CostPagePeriodFilter) Name() string
func (*CostPagePeriodFilter) Start ¶
func (this *CostPagePeriodFilter) Start(queue *Queue, code string)
func (*CostPagePeriodFilter) Stop ¶
func (this *CostPagePeriodFilter) Stop()
type CounterFilter ¶
type CounterFilter struct { Period stats.ValuePeriod IncreaseFunc func(value maps.Map, inc maps.Map) maps.Map // contains filtered or unexported fields }
数值增长型的统计
func (*CounterFilter) ApplyFilter ¶
func (this *CounterFilter) ApplyFilter(accessLog *accesslogs.AccessLog, params map[string]string, incrValue map[string]interface{})
应用筛选器
func (*CounterFilter) CheckNewIP ¶
func (this *CounterFilter) CheckNewIP(accessLog *accesslogs.AccessLog, attachKey string) bool
检查新IP
func (*CounterFilter) CheckNewUV ¶
func (this *CounterFilter) CheckNewUV(accessLog *accesslogs.AccessLog, attachKey string) bool
检查新UV
func (*CounterFilter) StartFilter ¶
func (this *CounterFilter) StartFilter(code string, period stats.ValuePeriod)
启动筛选器
type CounterValue ¶ added in v0.1.2
type CounterValue struct { Timestamp int64 `json:"timestamp"` Params map[string]string `json:"params"` Value map[string]interface{} `json:"value"` }
数值增长型的统计值
type DeviceAllPeriodFilter ¶
type DeviceAllPeriodFilter struct {
CounterFilter
}
设备统计
func (*DeviceAllPeriodFilter) Codes ¶
func (this *DeviceAllPeriodFilter) Codes() []string
func (*DeviceAllPeriodFilter) Filter ¶
func (this *DeviceAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*DeviceAllPeriodFilter) Indexes ¶
func (this *DeviceAllPeriodFilter) Indexes() []string
func (*DeviceAllPeriodFilter) Name ¶
func (this *DeviceAllPeriodFilter) Name() string
func (*DeviceAllPeriodFilter) Start ¶
func (this *DeviceAllPeriodFilter) Start(queue *Queue, code string)
func (*DeviceAllPeriodFilter) Stop ¶
func (this *DeviceAllPeriodFilter) Stop()
type FastcgiAllPeriodFilter ¶
type FastcgiAllPeriodFilter struct {
CounterFilter
}
Fastcgi请求统计
func (*FastcgiAllPeriodFilter) Codes ¶
func (this *FastcgiAllPeriodFilter) Codes() []string
func (*FastcgiAllPeriodFilter) Filter ¶
func (this *FastcgiAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*FastcgiAllPeriodFilter) Indexes ¶
func (this *FastcgiAllPeriodFilter) Indexes() []string
func (*FastcgiAllPeriodFilter) Name ¶
func (this *FastcgiAllPeriodFilter) Name() string
func (*FastcgiAllPeriodFilter) Start ¶
func (this *FastcgiAllPeriodFilter) Start(queue *Queue, code string)
func (*FastcgiAllPeriodFilter) Stop ¶
func (this *FastcgiAllPeriodFilter) Stop()
type FilterInterface ¶
type FilterInterface interface { // 名称 Name() string // 代号 Codes() []string // 索引参数 Indexes() []string // 启动 Start(queue *Queue, code string) // 筛选某个访问日志 Filter(accessLog *accesslogs.AccessLog) // 停止 Stop() }
筛选器接口
type IPAllPeriodFilter ¶
type IPAllPeriodFilter struct {
CounterFilter
}
IP统计
func (*IPAllPeriodFilter) Codes ¶
func (this *IPAllPeriodFilter) Codes() []string
func (*IPAllPeriodFilter) Filter ¶
func (this *IPAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*IPAllPeriodFilter) Indexes ¶
func (this *IPAllPeriodFilter) Indexes() []string
func (*IPAllPeriodFilter) Name ¶
func (this *IPAllPeriodFilter) Name() string
func (*IPAllPeriodFilter) Start ¶
func (this *IPAllPeriodFilter) Start(queue *Queue, code string)
func (*IPAllPeriodFilter) Stop ¶
func (this *IPAllPeriodFilter) Stop()
type IPPagePeriodFilter ¶
type IPPagePeriodFilter struct {
CounterFilter
}
IP统计
func (*IPPagePeriodFilter) Codes ¶
func (this *IPPagePeriodFilter) Codes() []string
func (*IPPagePeriodFilter) Filter ¶
func (this *IPPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*IPPagePeriodFilter) Indexes ¶
func (this *IPPagePeriodFilter) Indexes() []string
func (*IPPagePeriodFilter) Name ¶
func (this *IPPagePeriodFilter) Name() string
func (*IPPagePeriodFilter) Start ¶
func (this *IPPagePeriodFilter) Start(queue *Queue, code string)
func (*IPPagePeriodFilter) Stop ¶
func (this *IPPagePeriodFilter) Stop()
type LandingPagePeriodFilter ¶
type LandingPagePeriodFilter struct {
CounterFilter
}
登陆页统计
func (*LandingPagePeriodFilter) Codes ¶
func (this *LandingPagePeriodFilter) Codes() []string
func (*LandingPagePeriodFilter) Filter ¶
func (this *LandingPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*LandingPagePeriodFilter) Indexes ¶
func (this *LandingPagePeriodFilter) Indexes() []string
func (*LandingPagePeriodFilter) Name ¶
func (this *LandingPagePeriodFilter) Name() string
func (*LandingPagePeriodFilter) Start ¶
func (this *LandingPagePeriodFilter) Start(queue *Queue, code string)
func (*LandingPagePeriodFilter) Stop ¶
func (this *LandingPagePeriodFilter) Stop()
type LocationAllPeriodFilter ¶
type LocationAllPeriodFilter struct {
CounterFilter
}
路径规则请求统计
func (*LocationAllPeriodFilter) Codes ¶
func (this *LocationAllPeriodFilter) Codes() []string
func (*LocationAllPeriodFilter) Filter ¶
func (this *LocationAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*LocationAllPeriodFilter) Indexes ¶
func (this *LocationAllPeriodFilter) Indexes() []string
func (*LocationAllPeriodFilter) Name ¶
func (this *LocationAllPeriodFilter) Name() string
func (*LocationAllPeriodFilter) Start ¶
func (this *LocationAllPeriodFilter) Start(queue *Queue, code string)
func (*LocationAllPeriodFilter) Stop ¶
func (this *LocationAllPeriodFilter) Stop()
type MethodAllPeriodFilter ¶
type MethodAllPeriodFilter struct {
CounterFilter
}
请求方法统计
func (*MethodAllPeriodFilter) Codes ¶
func (this *MethodAllPeriodFilter) Codes() []string
func (*MethodAllPeriodFilter) Filter ¶
func (this *MethodAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*MethodAllPeriodFilter) Indexes ¶
func (this *MethodAllPeriodFilter) Indexes() []string
func (*MethodAllPeriodFilter) Name ¶
func (this *MethodAllPeriodFilter) Name() string
func (*MethodAllPeriodFilter) Start ¶
func (this *MethodAllPeriodFilter) Start(queue *Queue, code string)
func (*MethodAllPeriodFilter) Stop ¶
func (this *MethodAllPeriodFilter) Stop()
type MethodPagePeriodFilter ¶
type MethodPagePeriodFilter struct {
CounterFilter
}
请求方法统计
func (*MethodPagePeriodFilter) Codes ¶
func (this *MethodPagePeriodFilter) Codes() []string
func (*MethodPagePeriodFilter) Filter ¶
func (this *MethodPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*MethodPagePeriodFilter) Indexes ¶
func (this *MethodPagePeriodFilter) Indexes() []string
func (*MethodPagePeriodFilter) Name ¶
func (this *MethodPagePeriodFilter) Name() string
func (*MethodPagePeriodFilter) Start ¶
func (this *MethodPagePeriodFilter) Start(queue *Queue, code string)
func (*MethodPagePeriodFilter) Stop ¶
func (this *MethodPagePeriodFilter) Stop()
type OSAllPeriodFilter ¶
type OSAllPeriodFilter struct {
CounterFilter
}
操作系统统计
func (*OSAllPeriodFilter) Codes ¶
func (this *OSAllPeriodFilter) Codes() []string
func (*OSAllPeriodFilter) Filter ¶
func (this *OSAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*OSAllPeriodFilter) Indexes ¶
func (this *OSAllPeriodFilter) Indexes() []string
func (*OSAllPeriodFilter) Name ¶
func (this *OSAllPeriodFilter) Name() string
func (*OSAllPeriodFilter) Start ¶
func (this *OSAllPeriodFilter) Start(queue *Queue, code string)
func (*OSAllPeriodFilter) Stop ¶
func (this *OSAllPeriodFilter) Stop()
type PVAllPeriodFilter ¶
type PVAllPeriodFilter struct {
CounterFilter
}
PV统计
func (*PVAllPeriodFilter) Codes ¶
func (this *PVAllPeriodFilter) Codes() []string
func (*PVAllPeriodFilter) Filter ¶
func (this *PVAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*PVAllPeriodFilter) Indexes ¶
func (this *PVAllPeriodFilter) Indexes() []string
func (*PVAllPeriodFilter) Name ¶
func (this *PVAllPeriodFilter) Name() string
func (*PVAllPeriodFilter) Start ¶
func (this *PVAllPeriodFilter) Start(queue *Queue, code string)
func (*PVAllPeriodFilter) Stop ¶
func (this *PVAllPeriodFilter) Stop()
type PVPagePeriodFilter ¶
type PVPagePeriodFilter struct {
CounterFilter
}
PV统计
func (*PVPagePeriodFilter) Codes ¶
func (this *PVPagePeriodFilter) Codes() []string
func (*PVPagePeriodFilter) Filter ¶
func (this *PVPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*PVPagePeriodFilter) Indexes ¶
func (this *PVPagePeriodFilter) Indexes() []string
func (*PVPagePeriodFilter) Name ¶
func (this *PVPagePeriodFilter) Name() string
func (*PVPagePeriodFilter) Start ¶
func (this *PVPagePeriodFilter) Start(queue *Queue, code string)
func (*PVPagePeriodFilter) Stop ¶
func (this *PVPagePeriodFilter) Stop()
type ProvinceAllPeriodFilter ¶
type ProvinceAllPeriodFilter struct {
CounterFilter
}
省份统计
func (*ProvinceAllPeriodFilter) Codes ¶
func (this *ProvinceAllPeriodFilter) Codes() []string
func (*ProvinceAllPeriodFilter) Filter ¶
func (this *ProvinceAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*ProvinceAllPeriodFilter) Indexes ¶
func (this *ProvinceAllPeriodFilter) Indexes() []string
func (*ProvinceAllPeriodFilter) Name ¶
func (this *ProvinceAllPeriodFilter) Name() string
func (*ProvinceAllPeriodFilter) Start ¶
func (this *ProvinceAllPeriodFilter) Start(queue *Queue, code string)
func (*ProvinceAllPeriodFilter) Stop ¶
func (this *ProvinceAllPeriodFilter) Stop()
type Queue ¶
type Queue struct { ServerId string // contains filtered or unexported fields }
入库队列
type Rank ¶ added in v0.1.2
type Rank struct {
// contains filtered or unexported fields
}
排行计算
type RefererDomainPeriodFilter ¶
type RefererDomainPeriodFilter struct {
CounterFilter
}
来源域名统计
func (*RefererDomainPeriodFilter) Codes ¶
func (this *RefererDomainPeriodFilter) Codes() []string
func (*RefererDomainPeriodFilter) Filter ¶
func (this *RefererDomainPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*RefererDomainPeriodFilter) Indexes ¶
func (this *RefererDomainPeriodFilter) Indexes() []string
func (*RefererDomainPeriodFilter) Name ¶
func (this *RefererDomainPeriodFilter) Name() string
func (*RefererDomainPeriodFilter) Start ¶
func (this *RefererDomainPeriodFilter) Start(queue *Queue, code string)
func (*RefererDomainPeriodFilter) Stop ¶
func (this *RefererDomainPeriodFilter) Stop()
type RefererURLPeriodFilter ¶
type RefererURLPeriodFilter struct {
CounterFilter
}
来源URL统计
func (*RefererURLPeriodFilter) Codes ¶
func (this *RefererURLPeriodFilter) Codes() []string
func (*RefererURLPeriodFilter) Filter ¶
func (this *RefererURLPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*RefererURLPeriodFilter) Indexes ¶
func (this *RefererURLPeriodFilter) Indexes() []string
func (*RefererURLPeriodFilter) Name ¶
func (this *RefererURLPeriodFilter) Name() string
func (*RefererURLPeriodFilter) Start ¶
func (this *RefererURLPeriodFilter) Start(queue *Queue, code string)
func (*RefererURLPeriodFilter) Stop ¶
func (this *RefererURLPeriodFilter) Stop()
type RegionAllPeriodFilter ¶
type RegionAllPeriodFilter struct {
CounterFilter
}
区域统计
func (*RegionAllPeriodFilter) Codes ¶
func (this *RegionAllPeriodFilter) Codes() []string
func (*RegionAllPeriodFilter) Filter ¶
func (this *RegionAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*RegionAllPeriodFilter) Indexes ¶
func (this *RegionAllPeriodFilter) Indexes() []string
func (*RegionAllPeriodFilter) Name ¶
func (this *RegionAllPeriodFilter) Name() string
func (*RegionAllPeriodFilter) Start ¶
func (this *RegionAllPeriodFilter) Start(queue *Queue, code string)
func (*RegionAllPeriodFilter) Stop ¶
func (this *RegionAllPeriodFilter) Stop()
type RequestAllPeriodFilter ¶
type RequestAllPeriodFilter struct {
CounterFilter
}
请求数统计
func (*RequestAllPeriodFilter) Codes ¶
func (this *RequestAllPeriodFilter) Codes() []string
func (*RequestAllPeriodFilter) Filter ¶
func (this *RequestAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*RequestAllPeriodFilter) Indexes ¶
func (this *RequestAllPeriodFilter) Indexes() []string
func (*RequestAllPeriodFilter) Name ¶
func (this *RequestAllPeriodFilter) Name() string
func (*RequestAllPeriodFilter) Start ¶
func (this *RequestAllPeriodFilter) Start(queue *Queue, code string)
func (*RequestAllPeriodFilter) Stop ¶
func (this *RequestAllPeriodFilter) Stop()
type RequestIPPeriodFilter ¶ added in v0.1.2
type RequestIPPeriodFilter struct {
// contains filtered or unexported fields
}
请求IP数统计
func (*RequestIPPeriodFilter) Codes ¶ added in v0.1.2
func (this *RequestIPPeriodFilter) Codes() []string
func (*RequestIPPeriodFilter) Filter ¶ added in v0.1.2
func (this *RequestIPPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*RequestIPPeriodFilter) Indexes ¶ added in v0.1.2
func (this *RequestIPPeriodFilter) Indexes() []string
func (*RequestIPPeriodFilter) Name ¶ added in v0.1.2
func (this *RequestIPPeriodFilter) Name() string
func (*RequestIPPeriodFilter) Start ¶ added in v0.1.2
func (this *RequestIPPeriodFilter) Start(queue *Queue, code string)
func (*RequestIPPeriodFilter) Stop ¶ added in v0.1.2
func (this *RequestIPPeriodFilter) Stop()
type RequestPagePeriodFilter ¶
type RequestPagePeriodFilter struct {
CounterFilter
}
请求数统计
func (*RequestPagePeriodFilter) Codes ¶
func (this *RequestPagePeriodFilter) Codes() []string
func (*RequestPagePeriodFilter) Filter ¶
func (this *RequestPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*RequestPagePeriodFilter) Indexes ¶
func (this *RequestPagePeriodFilter) Indexes() []string
func (*RequestPagePeriodFilter) Name ¶
func (this *RequestPagePeriodFilter) Name() string
func (*RequestPagePeriodFilter) Start ¶
func (this *RequestPagePeriodFilter) Start(queue *Queue, code string)
func (*RequestPagePeriodFilter) Stop ¶
func (this *RequestPagePeriodFilter) Stop()
type RewriteAllPeriodFilter ¶
type RewriteAllPeriodFilter struct {
CounterFilter
}
重写规则请求统计
func (*RewriteAllPeriodFilter) Codes ¶
func (this *RewriteAllPeriodFilter) Codes() []string
func (*RewriteAllPeriodFilter) Filter ¶
func (this *RewriteAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*RewriteAllPeriodFilter) Indexes ¶
func (this *RewriteAllPeriodFilter) Indexes() []string
func (*RewriteAllPeriodFilter) Name ¶
func (this *RewriteAllPeriodFilter) Name() string
func (*RewriteAllPeriodFilter) Start ¶
func (this *RewriteAllPeriodFilter) Start(queue *Queue, code string)
func (*RewriteAllPeriodFilter) Stop ¶
func (this *RewriteAllPeriodFilter) Stop()
type ServerQueue ¶
type ServerQueue struct { Queue *Queue Filters map[string]FilterInterface // code => instance }
服务队列配置
func (*ServerQueue) Filter ¶
func (this *ServerQueue) Filter(accessLog *accesslogs.AccessLog)
func (*ServerQueue) StartFilter ¶
func (this *ServerQueue) StartFilter(code string)
func (*ServerQueue) Stop ¶
func (this *ServerQueue) Stop()
type StatusAllPeriodFilter ¶
type StatusAllPeriodFilter struct {
CounterFilter
}
状态码统计
func (*StatusAllPeriodFilter) Codes ¶
func (this *StatusAllPeriodFilter) Codes() []string
func (*StatusAllPeriodFilter) Filter ¶
func (this *StatusAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*StatusAllPeriodFilter) Indexes ¶
func (this *StatusAllPeriodFilter) Indexes() []string
func (*StatusAllPeriodFilter) Name ¶
func (this *StatusAllPeriodFilter) Name() string
func (*StatusAllPeriodFilter) Start ¶
func (this *StatusAllPeriodFilter) Start(queue *Queue, code string)
func (*StatusAllPeriodFilter) Stop ¶
func (this *StatusAllPeriodFilter) Stop()
type StatusPagePeriodFilter ¶
type StatusPagePeriodFilter struct {
CounterFilter
}
状态码统计
func (*StatusPagePeriodFilter) Filter ¶
func (this *StatusPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
筛选
func (*StatusPagePeriodFilter) Indexes ¶
func (this *StatusPagePeriodFilter) Indexes() []string
func (*StatusPagePeriodFilter) Name ¶
func (this *StatusPagePeriodFilter) Name() string
func (*StatusPagePeriodFilter) Start ¶
func (this *StatusPagePeriodFilter) Start(queue *Queue, code string)
启动
type TrafficAllPeriodFilter ¶
type TrafficAllPeriodFilter struct {
CounterFilter
}
流量统计
func (*TrafficAllPeriodFilter) Codes ¶
func (this *TrafficAllPeriodFilter) Codes() []string
func (*TrafficAllPeriodFilter) Filter ¶
func (this *TrafficAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*TrafficAllPeriodFilter) Indexes ¶
func (this *TrafficAllPeriodFilter) Indexes() []string
func (*TrafficAllPeriodFilter) Name ¶
func (this *TrafficAllPeriodFilter) Name() string
func (*TrafficAllPeriodFilter) Start ¶
func (this *TrafficAllPeriodFilter) Start(queue *Queue, code string)
func (*TrafficAllPeriodFilter) Stop ¶
func (this *TrafficAllPeriodFilter) Stop()
type TrafficPagePeriodFilter ¶
type TrafficPagePeriodFilter struct {
CounterFilter
}
流量统计
func (*TrafficPagePeriodFilter) Codes ¶
func (this *TrafficPagePeriodFilter) Codes() []string
func (*TrafficPagePeriodFilter) Filter ¶
func (this *TrafficPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*TrafficPagePeriodFilter) Indexes ¶
func (this *TrafficPagePeriodFilter) Indexes() []string
func (*TrafficPagePeriodFilter) Name ¶
func (this *TrafficPagePeriodFilter) Name() string
func (*TrafficPagePeriodFilter) Start ¶
func (this *TrafficPagePeriodFilter) Start(queue *Queue, code string)
func (*TrafficPagePeriodFilter) Stop ¶
func (this *TrafficPagePeriodFilter) Stop()
type UVAllPeriodFilter ¶
type UVAllPeriodFilter struct {
CounterFilter
}
UV统计
func (*UVAllPeriodFilter) Codes ¶
func (this *UVAllPeriodFilter) Codes() []string
func (*UVAllPeriodFilter) Filter ¶
func (this *UVAllPeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*UVAllPeriodFilter) Indexes ¶
func (this *UVAllPeriodFilter) Indexes() []string
func (*UVAllPeriodFilter) Name ¶
func (this *UVAllPeriodFilter) Name() string
func (*UVAllPeriodFilter) Start ¶
func (this *UVAllPeriodFilter) Start(queue *Queue, code string)
func (*UVAllPeriodFilter) Stop ¶
func (this *UVAllPeriodFilter) Stop()
type UVPagePeriodFilter ¶
type UVPagePeriodFilter struct {
CounterFilter
}
UV统计
func (*UVPagePeriodFilter) Codes ¶
func (this *UVPagePeriodFilter) Codes() []string
func (*UVPagePeriodFilter) Filter ¶
func (this *UVPagePeriodFilter) Filter(accessLog *accesslogs.AccessLog)
func (*UVPagePeriodFilter) Indexes ¶
func (this *UVPagePeriodFilter) Indexes() []string
func (*UVPagePeriodFilter) Name ¶
func (this *UVPagePeriodFilter) Name() string
func (*UVPagePeriodFilter) Start ¶
func (this *UVPagePeriodFilter) Start(queue *Queue, code string)
func (*UVPagePeriodFilter) Stop ¶
func (this *UVPagePeriodFilter) Stop()
Source Files ¶
- backend_all_period.go
- browser_all_period.go
- city_all_period.go
- cost_all_period.go
- cost_page_period.go
- counter_filter.go
- counter_value.go
- device_all_period.go
- fastcgi_all_period.go
- filter.go
- init.go
- ip_all_period.go
- ip_page_period.go
- kv_storage.go
- landing_page_period.go
- location_all_period.go
- method_all_period.go
- method_page_period.go
- os_all_period.go
- province_all_period.go
- pv_all_period.go
- pv_page_period.go
- queue.go
- rank.go
- referer_domain_period.go
- referer_url_period.go
- region_all_period.go
- request_all_period.go
- request_ip_period.go
- request_page_period.go
- rewrite_all_period.go
- server_queue.go
- status_all_period.go
- status_page_period.go
- traffic_all_period.go
- traffic_page_period.go
- utils.go
- uv_all_period.go
- uv_page_period.go
Click to show internal directories.
Click to hide internal directories.