api

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reject

func Reject(code codes.Code, clientMsg, detail string) error

Reject builds a rejection carrying a client-safe code+message and a server-side detail for logging.

Return the result unwrapped. gRPC reads GRPCStatus verbatim only for an error it can type-assert directly; for a wrapped one it keeps the code but replaces the message with err.Error(), which is the detail. Adding context with %w therefore sends the caller exactly what this type withholds, so put the context in the detail instead.

Types

This section is empty.

Directories

Path Synopsis
auth
v1
kms
v1

Jump to

Keyboard shortcuts

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