Documentation ¶
Overview ¶
Package pglog provides helpers for a Postgres logs processing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound defines an error if last session activity not found. ErrNotFound = errors.New("pglog activity: not found") // ErrLastFile defines an error if no more recent log files to discover last activity. ErrLastFile = errors.New("no more recent log files") // ErrTimeBoundary defines an error if the upper boundary of the interval exceeded. ErrTimeBoundary = errors.New("time boundary exceeded") )
Functions ¶
Types ¶
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
Selector describes a struct to select CSV log files.
func (*Selector) DiscoverLogDir ¶
DiscoverLogDir discovers available CSV log files.
func (*Selector) FilterOldFilesInList ¶
func (s *Selector) FilterOldFilesInList()
FilterOldFilesInList filters the original filename list.
func (*Selector) SetMinimumTime ¶
SetMinimumTime sets a minimum allowable time.
Click to show internal directories.
Click to hide internal directories.