logparser

package
v0.0.0-...-1e7718d Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: LGPL-2.1 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Observe

func Observe(name string, filename string, chanObservation chan Observation, interval time.Duration)

func Read

func Read(rd io.Reader) (stats map[string]int64, err error)

Types

type Observation

type Observation struct {
	Name  string
	Stats Stats
}

type Parser

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

Parser parses logs

func NewLogParser

func NewLogParser(filename string) (p *Parser, err error)

NewLogParser well a fresh log parser, if your log file is not too fishy

type Stats

type Stats map[string]int64

func (Stats) Add

func (s Stats) Add(stats Stats)

func (Stats) Copy

func (s Stats) Copy() Stats

Jump to

Keyboard shortcuts

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