Documentation
¶
Index ¶
- Constants
- Variables
- func ScanForward(rdr io.Reader, parseF ParseFuncT, scanF ScanFuncT, opts ...ScanOptT) error
- func ScanReverse(src io.ReaderAt, parseF ParseFuncT, scanF ScanFuncT, opts ...ScanOptT) error
- type ErrFuncT
- type ExprT
- type LogEntry
- type MatchFlagT
- type MatchScan
- type ModeT
- type ParseFuncT
- type ROpt
- type ReorderT
- type ScanFuncT
- type ScanOptT
- type StdReadScan
Constants ¶
View Source
const (
MaxRecordSize = pool.MaxRecordSize
)
Variables ¶
View Source
var ( ErrInvalidWindow = errors.New("invalid window") ErrInvalidCallback = errors.New("invalid callback") )
Functions ¶
func ScanForward ¶
func ScanReverse ¶
Types ¶
type MatchScan ¶
type MatchScan struct {
Sz int
MaxSz int
Clip bool
Logs []LogEntry
// contains filtered or unexported fields
}
func NewMatchScan ¶
func NewMatchScan(maxSz int, flags MatchFlagT, exprs []ExprT) *MatchScan
type ParseFuncT ¶
type ReorderT ¶
type ReorderT struct {
// contains filtered or unexported fields
}
func (*ReorderT) AdvanceClock ¶
Artificially advance the clock to the specified timestamp. This will cause any entries older than (clock - window) to be delivered. Returns true if done.
func (*ReorderT) Append ¶
Append a new log entry to the reorder buffer. Entry will be delivered to the callback when its timestamp is outside the window. Returns true if done, where done is indicated by the callback.
type StdReadScan ¶
func NewStdReadScan ¶
func NewStdReadScan(maxSz int) *StdReadScan
func (*StdReadScan) Scan ¶
func (sr *StdReadScan) Scan(entry LogEntry) bool
Click to show internal directories.
Click to hide internal directories.