middleware

package
v3.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithStreamClientInterceptors

func WithStreamClientInterceptors(interceptors ...grpc.StreamClientInterceptor) grpc.DialOption

WithStreamClientInterceptors wraps multiple stream client interceptors in a single option.

func WithStreamServerInterceptors

func WithStreamServerInterceptors(interceptors ...grpc.StreamServerInterceptor) grpc.ServerOption

WithStreamServerInterceptors wraps multiple stream server interceptors in a single option.

func WithStreamServerLogger

func WithStreamServerLogger(l log.Logger) grpc.StreamServerInterceptor

WithStreamServerLogger adds the stats instance to the stream context.

func WithStreamServerRecovery

func WithStreamServerRecovery() grpc.StreamServerInterceptor

WithStreamServerRecovery returns an interceptor that recovers from panics.

func WithStreamServerStats

func WithStreamServerStats(s stats.Stats) grpc.StreamServerInterceptor

WithStreamServerStats adds the stats instance to the stream context.

func WithUnaryClientInterceptors

func WithUnaryClientInterceptors(interceptors ...grpc.UnaryClientInterceptor) grpc.DialOption

WithUnaryClientInterceptors wraps multiple unary client interceptors in a single option.

func WithUnaryServerInterceptors

func WithUnaryServerInterceptors(interceptors ...grpc.UnaryServerInterceptor) grpc.ServerOption

WithUnaryServerInterceptors wraps multiple unary server interceptors in a single option.

func WithUnaryServerLogger

func WithUnaryServerLogger(l log.Logger) grpc.UnaryServerInterceptor

WithUnaryServerLogger adds the logger instance to the unary request context.

func WithUnaryServerRecovery

func WithUnaryServerRecovery() grpc.UnaryServerInterceptor

WithUnaryServerRecovery returns an interceptor that recovers from panics.

func WithUnaryServerStats

func WithUnaryServerStats(s stats.Stats) grpc.UnaryServerInterceptor

WithUnaryServerStats adds the stats instance to the unary request context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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