grpcinterceptor

package
v0.0.0-...-869c34b Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrpcAuthStreamInterceptor

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

GrpcAuthStreamInterceptor 流式 RPC 拦截器

func GrpcAuthUnaryInterCeptor

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

GrpcAuthUnaryInterCeptor 普通 RPC 拦截器

func GrpcFlowCountStreamInterceptor

func GrpcFlowCountStreamInterceptor(counter *public.FlowCountService) func(
	srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

GrpcFlowCountStreamInterceptor 流式 RPC 流量统计

func GrpcFlowCountUnaryInterceptor

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

GrpcFlowCountUnaryInterceptor 普通 RPC 流量统计

Types

This section is empty.

Jump to

Keyboard shortcuts

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