gRPC interceptors
A gRPC interceptor is a function that wraps RPC execution to apply shared behavior before or after a handler runs. In this course, unary and stream interceptors implement authentication, logging, and other cross-cutting server policies in a centralized location.
Minimal example
grpc.NewServer(
grpc.ChainUnaryInterceptor(
LogUnary,
AuthUnary,
),
)