Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLine ¶
type LogLine struct { Container string `json:"container"` Line string `json:"_line"` Host string `json:"_host"` Tags []string `json:"_tag"` }
A LogLine represent a json line of LogDNA backup file.
type Reader ¶
A Reader can be read to retrieve uncompressed data from logdna backup file compressed with gzip.
type Status ¶
A Status contain the status of reading. FileInfo is a os.FileInfo of reading file. Offset is a position where the reader read at moment
type Writer ¶
type Writer struct { OutputDir string // contains filtered or unexported fields }
A Writer can be write to text plain from LogLine.
func (*Writer) WriteInFileByServer ¶
WriteInFileByServer write a LogLine in a respective file. The file name is {l.Host}.log. For Each Distinct Host will open a new file but will not close the files when done. It is the caller's responsibility to call CloseFiles on the Writer when done.
Click to show internal directories.
Click to hide internal directories.