2020-01-23 18:01:56 +01:00
|
|
|
package logparser
|
2020-01-24 12:00:49 +01:00
|
|
|
|
|
|
|
type (
|
|
|
|
// Parser provides the interface for a Parser
|
|
|
|
// It should provide:
|
|
|
|
// Parse to parse a line of log
|
|
|
|
// GetAttributes to get list of attributes (map keys)
|
|
|
|
Parser interface {
|
|
|
|
Parse() error
|
|
|
|
Push() error
|
|
|
|
Pop() map[string]string
|
|
|
|
}
|
|
|
|
)
|