blob: 72290f8828b40092e4c7ae1c155e3dda7262a2d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//go:build !proprietary
package logformat
import "errors"
// ErrMimecastNotAvailable is thrown in the open source version of DTail
var ErrMimecastNotAvailable error = errors.New("The mimecast logformat is not available in this build of DTail")
type mimecastParser struct{}
var _ Parser = (*mimecastParser)(nil)
func newMimecastParser(hostname, timeZoneName string, timeZoneOffset int) (*mimecastParser, error) {
return &mimecastParser{}, ErrMimecastNotAvailable
}
func newMimecastGenericParser(hostname, timeZoneName string, timeZoneOffset int) (*mimecastParser, error) {
return &mimecastParser{}, ErrMimecastNotAvailable
}
func (p *mimecastParser) MakeFields(maprLine string) (map[string]string, error) {
return nil, ErrMimecastNotAvailable
}
|