interceptor

package
v0.0.0-...-ad57ece Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 20 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 AuthStreamingServerInterceptor

func AuthStreamingServerInterceptor(authManager auth.Manager) grpc.StreamServerInterceptor

AuthStreamingServerInterceptor authenticates and authorizes streaming RPCs.

func AuthUnaryServerInterceptor

func AuthUnaryServerInterceptor(authManager auth.Manager) grpc.UnaryServerInterceptor

AuthUnaryServerInterceptor authenticates and authorizes unary RPCs.

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