Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IterWithAccessTime ¶
type IterWithAccessTime struct {
// contains filtered or unexported fields
}
func NewIter ¶
func NewIter(iter *Sequence, search, level string) *IterWithAccessTime
func (*IterWithAccessTime) Close ¶
func (i *IterWithAccessTime) Close() error
func (*IterWithAccessTime) GetAccessTime ¶
func (i *IterWithAccessTime) GetAccessTime() time.Time
type Searcher ¶
type Searcher interface {
Search(dir string, begin, end time.Time, level, text, token string) (iterator.Iterator, string, error)
}
func NewSearcher ¶
func NewSearcher() Searcher
type Sequence ¶
type Sequence struct {
// contains filtered or unexported fields
}
func NewSequence ¶
SearchLog open all log files in the directory, analyze each log in each file by merge sort (from old to new by timestamp), return the constructed LogIter object and provide the Next function for external call.
func (*Sequence) Add ¶
func (s *Sequence) Add(iter iterator.IteratorWithPeek)
Click to show internal directories.
Click to hide internal directories.