Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineHandler ¶
type LineHandler func(line []byte)
LineHandler is a function type that processes a single log line.
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
Stream is an io.Writer that processes incoming data line by line and invokes a callback for each line.
func New ¶
func New(lineHandler LineHandler, errHandler StreamErrHandler) *Stream
type StreamErrHandler ¶
type StreamErrHandler func(err error)
StreamErrHandler is a function type that handles errors from the stream processor itself.
Click to show internal directories.
Click to hide internal directories.