analyzer-d4-log/logparser/parser.go

16 lines
314 B
Go
Raw Normal View History

package logparser
import "github.com/gomodule/redigo/redis"
type (
// Parser provides the interface for a Parser
// It should provide:
// Set to assign a redis connection to it
// Parse to parse a line of log
Parser interface {
2020-01-30 17:31:47 +01:00
Set(*redis.Conn, *redis.Conn)
2020-01-27 16:07:09 +01:00
Parse(string) error
2020-01-30 17:31:47 +01:00
Compile() error
}
)