handler

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: CC-BY-SA-4.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnalysisTypePvUv = iota
	AnalysisTypeFieldIp
	AnalysisTypeFieldUri
	AnalysisTypeFieldUserAgent
	AnalysisTypeFieldUserCity
	AnalysisTypeResponseStatus
	AnalysisTypeTimeMeanCostUris
	AnalysisTypeTimePercentCostUris
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Input(info *parser.LogInfo)

	Output(limit int)
}

type MostFrequentStatusHandler

type MostFrequentStatusHandler struct {
	// contains filtered or unexported fields
}

func NewMostFrequentStatusHandler

func NewMostFrequentStatusHandler() *MostFrequentStatusHandler

func (*MostFrequentStatusHandler) Input

func (handler *MostFrequentStatusHandler) Input(info *parser.LogInfo)

func (*MostFrequentStatusHandler) Output

func (handler *MostFrequentStatusHandler) Output(limit int)

type MostMatchFieldHandler

type MostMatchFieldHandler struct {
	// contains filtered or unexported fields
}

func NewMostMatchFieldHandler

func NewMostMatchFieldHandler(analysisType int) *MostMatchFieldHandler

func (*MostMatchFieldHandler) Input

func (handler *MostMatchFieldHandler) Input(info *parser.LogInfo)

func (*MostMatchFieldHandler) Output

func (handler *MostMatchFieldHandler) Output(limit int)

type MostVisitedCities

type MostVisitedCities struct {
	// contains filtered or unexported fields
}

func NewMostVisitedCities

func NewMostVisitedCities(dbFile string, limitSecond int) *MostVisitedCities

func (*MostVisitedCities) Input

func (handler *MostVisitedCities) Input(info *parser.LogInfo)

func (*MostVisitedCities) Output

func (handler *MostVisitedCities) Output(limit int)

type PvAndUvHandler

type PvAndUvHandler struct {
	// contains filtered or unexported fields
}

func NewPvAndUvHandler

func NewPvAndUvHandler() *PvAndUvHandler

func (*PvAndUvHandler) Input

func (handler *PvAndUvHandler) Input(info *parser.LogInfo)

func (*PvAndUvHandler) Output

func (handler *PvAndUvHandler) Output(limit int)

type TopTimeMeanCostUrisHandler

type TopTimeMeanCostUrisHandler struct {
	// contains filtered or unexported fields
}

func NewTopTimeMeanCostUrisHandler

func NewTopTimeMeanCostUrisHandler() *TopTimeMeanCostUrisHandler

func (*TopTimeMeanCostUrisHandler) Input

func (handler *TopTimeMeanCostUrisHandler) Input(info *parser.LogInfo)

func (*TopTimeMeanCostUrisHandler) Output

func (handler *TopTimeMeanCostUrisHandler) Output(limit int)

type TopTimePercentCostUrisHandler

type TopTimePercentCostUrisHandler struct {
	// contains filtered or unexported fields
}

func NewTopTimePercentCostUrisHandler

func NewTopTimePercentCostUrisHandler(percentile float64) *TopTimePercentCostUrisHandler

func (*TopTimePercentCostUrisHandler) Input

func (handler *TopTimePercentCostUrisHandler) Input(info *parser.LogInfo)

func (*TopTimePercentCostUrisHandler) Output

func (handler *TopTimePercentCostUrisHandler) Output(limit int)

Jump to

Keyboard shortcuts

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