package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/sams1990/dockerrepo.git
Documentation: pkg.go.dev
# Functions
NewLogEntryDecoder creates a new stream decoder for log entries.
NewLogEntryEncoder creates a protobuf stream encoder for log entries.
# Variables
No description provided by the author
No description provided by the author
# Interfaces
LogEntryDecoder decodes log entries from a stream It is expected that the wire format is as defined by LogEntryEncoder.
LogEntryEncoder encodes a LogEntry to a protobuf stream The stream should look like:
[uint32 binary encoded message size][protobuf message]
To decode an entry, read the first 4 bytes to get the size of the entry, then read `size` bytes from the stream.