interceptors

package
v0.0.0-...-7838e69 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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.

type RequestID

type RequestID struct{}

RequestID is a context tag for the request ID.

Jump to

Keyboard shortcuts

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