Documentation ¶ Index ¶ func HandleError(ctx context.Context, logger logging.Log, w http.ResponseWriter, ...) func SendJSON[Data any](_ context.Context, w http.ResponseWriter, span trace.Span, data Data) type ErrMap Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func HandleError ¶ func HandleError( ctx context.Context, logger logging.Log, w http.ResponseWriter, span trace.Span, errMap ErrMap, err error, ) func SendJSON ¶ func SendJSON[Data any](_ context.Context, w http.ResponseWriter, span trace.Span, data Data) Types ¶ type ErrMap ¶ type ErrMap map[error]int Source Files ¶ View all Source files error.gojson.go Click to show internal directories. Click to hide internal directories.