Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientInfoInterceptor ¶ added in v0.1.1
func ClientInfoInterceptor() grpc.UnaryServerInterceptor
ClientInfoInterceptor adds the client certificate common name to incoming requests.
func SourceIPInterceptor ¶
func SourceIPInterceptor() grpc.UnaryServerInterceptor
SourceIPInterceptor adds the source IP address to incoming requests.
Types ¶
type ClientName ¶ added in v0.1.1
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.