Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultStartBufSize for scanFile DefaultStartBufSize = 32 * 1000 // DefaultMaxBufSize for scanFile DefaultMaxBufSize = 5 * 1000 * 1000 // DefaultMaxReadSize : Maximum size for read DefaultMaxReadSize int64 = 500 * 1000 * 1000 // ErrTokenTooLong is returned when a token exceeds the maximum allowed size ErrTokenTooLong = errors.New("reader: token too long") )
Functions ¶
func Parse ¶
Parse creates a Parser and parses the specified log file using the provided position file and callback.
Parameters:
posFileName - the path to the position file used to track parsing progress logFile - the path to the log file to be parsed cb - a Callback implementation to handle parsed data
Returns an error if parsing fails.
Types ¶
Click to show internal directories.
Click to hide internal directories.