package
0.0.9
Repository: https://github.com/chorus-tre/chorus-backend.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
NewAuthUnaryServerInterceptors returns an second-round JWT-authentication intercepor for unary requests for a given key-function and claims-factory.
NewCorrelationIDStreamServerInterceptors returns a gRPC-server interceptor that extracts the correlation-ID field from the GRPC context in stream requests.
NewCorrelationIDUnaryServerInterceptors returns a gRPC-server interceptor that extracts the correlation-ID field from the GRPC context.
NewIPWhitelister creates a new IP whitelister.
NewIPWhitelistStreamServerInterceptor creates a new stream interceptor to ensure IP whitelisting for HTTP requests.
NewIPWhitelistUnaryServerInterceptor creates a new unary interceptor to ensure IP whitelisting for HTTP requests.
NewLoggingStreamServerInterceptors returns a gRPC-server interceptor that logs stream requests.
NewLoggingUnaryServerInterceptors returns a gRPC-server interceptor that logs unary requests.

# Constants

No description provided by the author

# Structs

IPWhitelister is a client whitelister which is using the client IP from the HTTP request headers.

# Interfaces

ClientWhitelister is an interface to deny the access to clients not in the whitelist.