binarylog
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package binarylog implementation binary logging as defined inhttps://github.com/grpc/proposal/blob/master/A16-binary-logging.md.
Notice: All APIs in this package are experimental.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
Types¶
typeSink¶
type Sink interface {// Write marshals the log entry and writes it to the destination. The format// is not specified, but should have sufficient information to rebuild the// entry. Some options are: proto bytes, or proto json.//// Note this function needs to be thread-safe.Write(*binlogpb.GrpcLogEntry)error// Close closes this sink and cleans up resources (e.g. the flushing// goroutine).Close()error}Sink represents the destination for the binary log entries.
funcNewTempFileSink¶
NewTempFileSink creates a temp file and returns a Sink that writes to thisfile.