analyzer-d4-log/logparser/parser.go

15 lines
283 B
Go

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 {
Set(*redis.Conn)
Parse(string) error
}
)