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.
Click to show internal directories.
Click to hide internal directories.