Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(validator *tokenauth.Validator, publicMethods map[string]bool) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a gRPC unary server interceptor that validates the service token for all RPCs not in publicMethods.
publicMethods is a set of fully-qualified gRPC method names (e.g., "/auth.v1.AuthService/Health") that do not require authentication. Any RPC not in this set requires a valid token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.