Documentation ¶ Index ¶ func StreamServerInterceptor(a auditing.Auditing, logger *slog.Logger, ...) (grpc.StreamServerInterceptor, error) func UnaryServerInterceptor(a auditing.Auditing, logger *slog.Logger, ...) (grpc.UnaryServerInterceptor, error) type GrpcError func (c GrpcError) Error() string type Key Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func StreamServerInterceptor ¶ func StreamServerInterceptor(a auditing.Auditing, logger *slog.Logger, shouldAudit func(fullMethod string) bool) (grpc.StreamServerInterceptor, error) func UnaryServerInterceptor ¶ func UnaryServerInterceptor(a auditing.Auditing, logger *slog.Logger, shouldAudit func(fullMethod string) bool) (grpc.UnaryServerInterceptor, error) Types ¶ type GrpcError ¶ type GrpcError struct { Code uint32 `json:"code"` Message string `json:"message"` Err string `json:"error"` } func (GrpcError) Error ¶ func (c GrpcError) Error() string type Key ¶ type Key int const ( RequestIDKey Key = iota ) Source Files ¶ View all Source files auditing-interceptor.go Click to show internal directories. Click to hide internal directories.