Documentation
¶
Index ¶
- Variables
- func NewLogFactory(data []byte, opts ...OptT) (format.FactoryI, int64, error)
- func WithCustomFmt(regex, fmt string) func(*optsT)
- func WithStampRegex(stampRegex ...FmtSpec) func(*optsT)
- func WithTimestampTries(tries int) func(*optsT)
- func WithWindow(window int64) func(*optsT)
- type DataSources
- type FmtSpec
- type LogData
- type LogSrcI
- type OptT
- type PipeRdrT
- type TimestampFmt
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorSourceType = errors.New("unsupported source type")
)
Functions ¶
func WithCustomFmt ¶
func WithCustomFmt(regex, fmt string) func(*optsT)
func WithStampRegex ¶
func WithStampRegex(stampRegex ...FmtSpec) func(*optsT)
func WithTimestampTries ¶
func WithTimestampTries(tries int) func(*optsT)
func WithWindow ¶
func WithWindow(window int64) func(*optsT)
Types ¶
type DataSources ¶
type DataSources = datasrc.DataSources
type FmtSpec ¶
type FmtSpec struct {
Pattern string
Format TimestampFmt
}
type LogData ¶
type LogData struct {
Logs []LogSrcI
// contains filtered or unexported fields
}
LogData is a collection of log src It implements the DataSrc interface
func NewLogData ¶
func Resolve ¶
func Resolve(dss *DataSources, opts ...OptT) []*LogData
type TimestampFmt ¶
type TimestampFmt = timez.TimestampFmt
Click to show internal directories.
Click to hide internal directories.