Documentation
¶
Index ¶
- Constants
- func AuthUnaryServerInterceptor(authManager user_auth.AuthManager) grpc.UnaryServerInterceptor
- func LoggingUnaryServerInterceptor() grpc.UnaryServerInterceptor
- func OuterInterceptor() grpc.UnaryServerInterceptor
- func ValidateUnaryServerInterceptor(val *protovalidate.Validator) grpc.UnaryServerInterceptor
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.
Click to show internal directories.
Click to hide internal directories.