grpclog

package
v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: CC0-1.0, CC0-1.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamClientInterceptor

func StreamClientInterceptor(l Printer) grpc.StreamClientInterceptor

StreamClientInterceptor returns the stream client interceptor logging to l.

func StreamServerInterceptor

func StreamServerInterceptor(l Printer) grpc.StreamServerInterceptor

StreamServerInterceptor returns the stream server interceptor logging to l.

func UnaryClientInterceptor

func UnaryClientInterceptor(l Printer) grpc.UnaryClientInterceptor

UnaryClientInterceptor returns the unary client interceptor logging to l.

func UnaryServerInterceptor

func UnaryServerInterceptor(l Printer) grpc.UnaryServerInterceptor

UnaryServerInterceptor returns the unary server interceptor logging to l.

Types

type Printer

type Printer interface {
	Printf(format string, v ...interface{})
}

Printer is the interface satisfied by the Printf method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL