package
2.0.0-alpha+incompatible
Repository: https://github.com/sandertungeaspoy/grpc-go.git
Documentation: pkg.go.dev

# Functions

GetMethodLogger returns the methodLogger for the given methodName.
NewBufferedSink creates a binary log sink with the given WriteCloser.
NewLoggerFromConfigString reads the string and build a logger.
SetLogger sets the binarg logger.

# Variables

AddrToProto converts an address to a binary logging proto message.
AllLogger is a logger that logs all headers/messages for all RPCs.
TODO(blog): change this default (file in /tmp).
MdToMetadataProto converts metadata to a binary logging proto message.

# Structs

Cancel configs the binary log entry to be a Cancel entry.
ClientHalfClose configs the binary log entry to be a ClientHalfClose entry.
ClientHeader configs the binary log entry to be a ClientHeader entry.
ClientMessage configs the binary log entry to be a ClientMessage entry.
MethodLogger is the sub-logger for each method.
ServerHeader configs the binary log entry to be a ServerHeader entry.
ServerMessage configs the binary log entry to be a ServerMessage entry.
ServerTrailer configs the binary log entry to be a ServerTrailer entry.

# Interfaces

LogEntryConfig represents the configuration for binary log entry.
Logger is the global binary logger.
Sink writes log entry into the binary log sink.