Discover Packages
blake.io/pqx
internal
logplex
package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Dec 30, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Logplex struct {
Sink io .Writer
Split func(line []byte ) (key, message []byte )
}
Flush flushes the any underlying buffered contents to any corresponding sink.
The contents flushed may not be a complete line, or have enough data to
determine the proper sink and instead send to Sink.
Flush should only be called when no more data will be written to Write.
Write writes p to the underlying buffer and flushes each newline to their
corresponding sinks.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.