Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientInfoInterceptor ¶
func ClientInfoInterceptor() grpc.UnaryServerInterceptor
ClientInfoInterceptor adds the client certificate common name to incoming requests.
func RequestIDInterceptor ¶
func RequestIDInterceptor() grpc.UnaryServerInterceptor
RequestIDInterceptor adds a request ID to incoming requests.
func SourceIPInterceptor ¶
func SourceIPInterceptor() grpc.UnaryServerInterceptor
SourceIPInterceptor adds the source IP address to incoming requests.
Types ¶
type ClientName ¶
type ClientName struct{}
ClientName is a context tag for the CN of the client's certificate.
type ExternalIP ¶
type ExternalIP struct{}
ExternalIP is a context tag for the external IP address of the request.
Click to show internal directories.
Click to hide internal directories.