Versions in this module Expand all Collapse all v0 v0.0.1 Sep 17, 2025 Changes in this version + const EventJSONHandleError + const EventOutput + var InvalidOutputErrorType = apierror.NewAPIError("INVALID_OUTPUT_ERROR_TYPE") + type APIOutput struct + Error *apierror.DefaultAPIError + Payload *T + type JSONOutput struct + func NewJSONOutput(emitterLogger event.EmitterLogger, errorOrigin string) JSONOutput + func (o JSONOutput) Handle(w http.ResponseWriter, r *http.Request, out any, outError error, status int) error + type RequestOption func(*util.RequestData) + func WithSpanID() RequestOption + func WithoutSpanID() RequestOption + type Response struct + Output *Output + Response *http.Response + func SendParsedRequest[Output any](ctx context.Context, client *http.Client, fullURL string, method string, ...) (*Response[Output], error) + func SendRequest[Input any, Output any](ctx context.Context, host string, url string, method string, i *Input, ...) (*Response[Output], error)