package hemoglobin

import "github.com/TLop503/LogCrunch/agent/hemoglobin"

Index

Functions

func ReadLog

func ReadLog(logChan chan<- structs.Log, target structs.Target)

ReadLog watches a log file and parses lines with a generic meta parser

Types

type ParserEntry

type ParserEntry struct {
	Regex     *regexp.Regexp
	NewStruct func() interface{}
}

ParserEntry holds the regex and a function that returns an empty struct to parse into

Directories

modules