nginx

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLocalTimeFormat = "02/Jan/2006:15:04:05 -0700"

Variables

This section is empty.

Functions

func NewFromNginx

func NewFromNginx(ne *gonx.Entry, tf string) *entry.LogEntry

func NewReader

func NewReader(logFile io.Reader, nginxConf io.Reader, formatName string, timeFormat string, tailMode bool) (source.Reader, error)

Types

type Parser

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

func NewParser

func NewParser(nginxConf io.Reader, formatName string, timeFormat string) (*Parser, error)

func (*Parser) ParseLine

func (p *Parser) ParseLine(line string) (*entry.LogEntry, error)

type Reader

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

func (*Reader) Records

func (r *Reader) Records() chan *entry.LogEntryResponse

Jump to

Keyboard shortcuts

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