logparser

package
v0.0.0-...-0b5d7a4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogEntry

type LogEntry struct {
	Time    time.Time
	Message string
}

A LogEntry represents a single log event containing the timestamp of the event, and the logged message.

func Parse

func Parse(b []byte) (*LogEntry, error)

Parse returns a parsed entry for a single Heroku syslog message delivered via HTTPS.

type ParseFunc

type ParseFunc func(b []byte) (*LogEntry, error)

A ParseFunc receives a single raw (unparsed) log entry and parses it into a LogEntry, which it returns.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳