interceptor

package
v0.0.0-...-5b48ee4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionHeader = "session"
)

Define a header constant for the token

Variables

This section is empty.

Functions

func AuthUnaryServerInterceptor

func AuthUnaryServerInterceptor(authManager auth.AuthManager) grpc.UnaryServerInterceptor

AuthUnaryServerInterceptor authenticates and authorizes unary RPCs.

func LoggingUnaryServerInterceptor

func LoggingUnaryServerInterceptor() grpc.UnaryServerInterceptor

LoggingUnaryServerInterceptor logs the details of each request and its duration.

func ValidateUnaryServerInterceptor

func ValidateUnaryServerInterceptor(val *protovalidate.Validator) grpc.UnaryServerInterceptor

ValidateUnaryServerInterceptor returns a gRPC interceptor for request validation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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