grpc

package module
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package grpc renders lakta AppErrors as gRPC status + errdetails. Import it aliased (e.g. errgrpc) to avoid clashing with google.golang.org/grpc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamServerInterceptor

func StreamServerInterceptor() grpc.StreamServerInterceptor

StreamServerInterceptor is the streaming equivalent.

func UnaryServerInterceptor

func UnaryServerInterceptor() grpc.UnaryServerInterceptor

UnaryServerInterceptor renders a handler's returned error via errors.FromError into a *status.Status: GRPC code + Message, attaching errdetails.ErrorInfo {Reason: string(Code), Metadata: Meta} and, when Fields is non-empty, errdetails.BadRequest{FieldViolations}. Attaches via status.WithDetails.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL