type callIDGenerator …
func (g *callIDGenerator) next() uint64 { … }
func (g *callIDGenerator) reset() { … }
var idGen …
type MethodLogger …
type TruncatingMethodLogger …
func NewTruncatingMethodLogger(h, m uint64) *TruncatingMethodLogger { … }
func (ml *TruncatingMethodLogger) Build(c LogEntryConfig) *binlogpb.GrpcLogEntry { … }
func (ml *TruncatingMethodLogger) Log(ctx context.Context, c LogEntryConfig) { … }
func (ml *TruncatingMethodLogger) truncateMetadata(mdPb *binlogpb.Metadata) (truncated bool) { … }
func (ml *TruncatingMethodLogger) truncateMessage(msgPb *binlogpb.Message) (truncated bool) { … }
type LogEntryConfig …
type ClientHeader …
func (c *ClientHeader) toProto() *binlogpb.GrpcLogEntry { … }
type ServerHeader …
func (c *ServerHeader) toProto() *binlogpb.GrpcLogEntry { … }
type ClientMessage …
func (c *ClientMessage) toProto() *binlogpb.GrpcLogEntry { … }
type ServerMessage …
func (c *ServerMessage) toProto() *binlogpb.GrpcLogEntry { … }
type ClientHalfClose …
func (c *ClientHalfClose) toProto() *binlogpb.GrpcLogEntry { … }
type ServerTrailer …
func (c *ServerTrailer) toProto() *binlogpb.GrpcLogEntry { … }
type Cancel …
func (c *Cancel) toProto() *binlogpb.GrpcLogEntry { … }
func metadataKeyOmit(key string) bool { … }
func mdToMetadataProto(md metadata.MD) *binlogpb.Metadata { … }
func addrToProto(addr net.Addr) *binlogpb.Address { … }