Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCTLSCertInfoInterceptor ¶
func GRPCTLSCertInfoInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
GRPCTLSCertInfoInterceptor is an interceptor for grpc.It catches tls cert info from grpc context.Context, and you can get tls cert info by TLSCertFromGRPCContext.
func HTTPTLSCertInfoInterceptor ¶
HTTPTLSCertInfoInterceptor is an interceptor for gin.It catches tls cert info from gin.Context, and you can get tls cert info by TLSCertFromGinContext.
func TLSCertFromGRPCContext ¶
TLSCertFromGRPCContext get tls cert info from grpc context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.