Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileGetter ¶
type FileGetter struct {
// contains filtered or unexported fields
}
FileGetter is responsible for retrieving file log data
func NewFileGetter ¶
func NewFileGetter(baseDir string) *FileGetter
NewFileGetter is constructor of FileGetter
type Interface ¶
type Interface interface {
// Retrieve the log data of the specified log entry
//
// logID string : the id of the log entry. e.g: file name a.log for file log
//
// If succeed, log data bytes will be returned
// otherwise, a non nil error is returned
Retrieve(logID string) ([]byte, error)
}
Interface defines operations of a log data getter
Click to show internal directories.
Click to hide internal directories.