interceptors

package
v2.0.0-beta7+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package interceptors contains gRPC wrappers for logging and Prometheus metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stream

func Stream(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

Stream adds context logger and Prometheus metrics to stream server RPC.

func Unary

func Unary(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

Unary adds context logger and Prometheus metrics to unary server RPC.

Types

This section is empty.

Jump to

Keyboard shortcuts

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