xgrpc

package
v0.0.0-...-953156a Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdditionalUnaryServerOptWithBase

func AdditionalUnaryServerOptWithBase(item ...grpc.UnaryServerInterceptor) []grpc.UnaryServerInterceptor

func ClientUnaryInvokerLog

func ClientUnaryInvokerLog() grpc.UnaryClientInterceptor

GetInvokerLog grpc client call log

func ClientUnaryOpentracingAndTimeOut

func ClientUnaryOpentracingAndTimeOut(servername string, timeout time.Duration) grpc.UnaryClientInterceptor

GetUnaryTimeOut

func Close

func Close()

func CreateWithStreamServerChain

func CreateWithStreamServerChain(item ...grpc.StreamServerInterceptor) grpc.ServerOption

CreateWithStreamServerChain WithStreamServerChain

func CreateWithUnaryServerChain

func CreateWithUnaryServerChain(item ...grpc.UnaryServerInterceptor) grpc.ServerOption

CreateWithUnaryServerChain WithUnaryServerChain

func GrpcConn

func GrpcConn(addr string) (*grpc.ClientConn, error)

func ServerUnaryInvokerLog

func ServerUnaryInvokerLog() grpc.UnaryServerInterceptor

GetServerUnaryInvokerLog grpc server call log

func ServerUnaryOpentracing

func ServerUnaryOpentracing(tracer opentracing.Tracer) grpc.UnaryServerInterceptor

ServerUnaryOpentracing rewrite server's interceptor with open tracing

func ServerUnaryRecoveryInterceptor

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

ServerUnaryRecoveryInterceptor RecoveryInterceptor,

func TLSServerOpt

func TLSServerOpt(tlsCert, tlsKey, caCert string) grpc.ServerOption

TLSServerOpt TLSServerOpt

Types

This section is empty.

Jump to

Keyboard shortcuts

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