Categorygithub.com/omegaup/logslurp
modulepackage
0.2.0
Repository: https://github.com/omegaup/logslurp.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewLogStream returns a new instance of LogStream.
NewPushRequest returns a PushRequest given a list of PushRequestStream objects.
NewTail opens a file at the specified offset and provides an io.Reader interface to the file, tail(1)-style: if the file is moved and recreated (maybe due to a log rotation), this transparently reopens the file and keeps the stream open.

# Structs

A LogStream is used to parse a log given a StreamConfig.
PushRequest is a message that can be sent to /loki/api/v1/push.
A PushRequestStream is a stream of timestamp/log line values in ascending timestamp order, plus stream labels in key/value pair format.
A PushRequestStreamEntry is a timestamp/log line value pair.
StreamConfig represents an entry for one stream.
Tail is a ReadCloser.