Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Timeformat = time.RFC1123
Functions ¶
func IsInAccessLog ¶
以下のいずれかを満たす場合はAccessLogとして集計しない
- 正しいUserAgentか
- Refererが存在するか
- 自サイトのRefererではないか(conf.httphostを使用)
- 自サイトのRefererではないか(RefererとrequestURLのドメインが同一)
Types ¶
type InLog ¶
type InLog struct { RemoteHost string `json: "remoteHost"` Time string `json: "time"` Method string `json: "method"` Url string `json: "url"` Status string `json: "status"` Referer string `json: "referer"` UserAgent string `json: "userAgent"` }
func BytesToInLog ¶
type ScoringInLog ¶
func NewScoringInLog ¶
func NewScoringInLog() *ScoringInLog
func (*ScoringInLog) Bootstrap ¶
func (sin *ScoringInLog) Bootstrap() (err error)
type ShowCounter ¶
type ShowCounter struct { Cleaned bool // contains filtered or unexported fields }
func NewShowCounter ¶
func NewShowCounter() *ShowCounter
func (*ShowCounter) Bootstrap ¶
func (c *ShowCounter) Bootstrap() (err error)
func (*ShowCounter) Clean ¶
func (c *ShowCounter) Clean(path string)
func (*ShowCounter) Counting ¶
func (c *ShowCounter) Counting(key string) (r []ShowResult, err error)
func (*ShowCounter) Findlist ¶
func (c *ShowCounter) Findlist(path string) (list []string)
type ShowResult ¶
Click to show internal directories.
Click to hide internal directories.