parser

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogItem

type LogItem struct {
	Size   uint64
	Client string
	Time   time.Time
	URL    string
	Server string
}

type NginxCombinedParser

type NginxCombinedParser struct{}

func (NginxCombinedParser) Parse

func (p NginxCombinedParser) Parse(line []byte) (LogItem, error)

type NginxJSONLog

type NginxJSONLog struct {
	Size      uint64  `json:"size"`
	Client    string  `json:"clientip"`
	Url       string  `json:"url"`
	Timestamp float64 `json:"timestamp"`
	ServerIP  string  `json:"serverip"`
}

type NginxJSONParser

type NginxJSONParser struct{}

func (NginxJSONParser) Parse

func (p NginxJSONParser) Parse(line []byte) (LogItem, error)

type Parser

type Parser interface {
	Parse(line []byte) (LogItem, error)
}

Jump to

Keyboard shortcuts

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