parsers

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 3 Imported by: 0

README

Parsers

Go log format parsers, generated by Ldetool producing performant & memory efficient parsers.

Formats

Currently it supports the following formats:

  • AWS Lambda

GoDoc

Sponsors

Sponsored by my GitHub sponsors:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSLambdaEnd

type AWSLambdaEnd struct {
	Rest      string
	RequestID string
}

AWSLambdaEnd event.

func (*AWSLambdaEnd) Extract

func (p *AWSLambdaEnd) Extract(line string) (bool, error)

Extract ...

type AWSLambdaReport

type AWSLambdaReport struct {
	Rest           string
	RequestID      string
	Duration       float64
	BilledDuration float64
	MemorySize     int
	MaxMemoryUsed  int
}

AWSLambdaReport event.

func (*AWSLambdaReport) Extract

func (p *AWSLambdaReport) Extract(line string) (bool, error)

Extract ...

type AWSLambdaReportInit added in v0.0.2

type AWSLambdaReportInit struct {
	Rest           string
	RequestID      string
	Duration       float64
	BilledDuration float64
	MemorySize     int
	MaxMemoryUsed  int
	InitDuration   float64
}

AWSLambdaReportInit event.

func (*AWSLambdaReportInit) Extract added in v0.0.2

func (p *AWSLambdaReportInit) Extract(line string) (bool, error)

Extract ...

type AWSLambdaStart

type AWSLambdaStart struct {
	Rest      string
	RequestID string
	Version   string
}

AWSLambdaStart event.

func (*AWSLambdaStart) Extract

func (p *AWSLambdaStart) Extract(line string) (bool, error)

Extract ...

type Event

type Event interface {
	Extract(line string) (bool, error)
}

Event is the interface used to extract an event from a log line.

func Parse

func Parse(line string) (Event, bool)

Parse a log line. Returns true if an event was successfully parsed.

Jump to

Keyboard shortcuts

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