Documentation ¶
Index ¶
- func LoggingStreamForClient(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, ...) (grpc.ClientStream, error)
- func LoggingStreamForServer(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func LoggingUnaryForClient(ctx context.Context, method string, req, reply interface{}, ...) error
- func LoggingUnaryForServer(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingStreamForClient ¶
func LoggingStreamForClient(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error)
LoggingStreamForClient performs streaming RPC client-side logging.
func LoggingStreamForServer ¶
func LoggingStreamForServer(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
LoggingStreamForServer performs streaming RPC server-side logging.
func LoggingUnaryForClient ¶
func LoggingUnaryForClient(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
LoggingUnaryForClient logs Unary RPC client side.
func LoggingUnaryForServer ¶
func LoggingUnaryForServer(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
LoggingUnaryForServer logs Unary RPC server side.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.