interceptor

package
v0.0.0-...-ebdfdf7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 18 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 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