Documentation
¶
Index ¶
- func DebugClientInterceptor(metadata interface{}) grpc.UnaryClientInterceptor
- func DebugServerInterceptor(metadata interface{}) grpc.UnaryServerInterceptor
- func DebugStreamClientInterceptor(metadata interface{}) grpc.StreamClientInterceptor
- func DebugStreamServerInterceptor(metadata interface{}) grpc.StreamServerInterceptor
- func InitDebugInterceptors(logFile string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugClientInterceptor ¶
func DebugClientInterceptor(metadata interface{}) grpc.UnaryClientInterceptor
Like debugServerInterceptor but for GRPC client connections.
func DebugServerInterceptor ¶
func DebugServerInterceptor(metadata interface{}) grpc.UnaryServerInterceptor
Logs all gRPC converations in JSON format.
To enable, call InitDebugInterceptors first in your process main to configure the location of the Go file.
func DebugStreamClientInterceptor ¶
func DebugStreamClientInterceptor(metadata interface{}) grpc.StreamClientInterceptor
Like debugClientInterceptor but for streaming calls.
func DebugStreamServerInterceptor ¶
func DebugStreamServerInterceptor(metadata interface{}) grpc.StreamServerInterceptor
Like debugServerInterceptor but for streaming calls.
func InitDebugInterceptors ¶
Enables gRPC interceptors for the current process. Intercepted gRPC conversations are logged to the given logFile in JSON format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.