interceptor

package
v0.0.0-...-d95c273 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 19 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 user_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 OuterInterceptor

func OuterInterceptor() grpc.UnaryServerInterceptor

AuthUnaryServerInterceptor authenticates and authorizes unary RPCs.

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