Versions in this module Expand all Collapse all v2 v2.0.1 Jun 29, 2026 v2.0.0 Jun 29, 2026 Changes in this version + func RegisterHTTPErrorMapper(m HTTPErrorMapper) + type APIError struct + Code ErrorCode + Message string + func (e *APIError) AsError() error + func (e *APIError) Error() string + type APIResponse struct + Data T + Details ResponseDetails + Error *APIError + Pagination *filtering.Pagination + func NewAPIErrorResponse(issue string, code ErrorCode, details ResponseDetails) *APIResponse[any] + type ErrorCode string + const ErrCircuitBroken + const ErrDataNotFound + const ErrDecodingRequestInput + const ErrEncryptionIssue + const ErrFetchingSessionContextData + const ErrMisbehavingDependency + const ErrNothingSpecific + const ErrSecretGeneration + const ErrTalkingToDatabase + const ErrTalkingToSearchProvider + const ErrUserIsBanned + const ErrUserIsNotAuthorized + const ErrValidatingRequestInput + func ToAPIError(err error) (code ErrorCode, msg string) + type HTTPErrorMapper interface + Map func(err error) (code ErrorCode, msg string, ok bool) + var PlatformMapper HTTPErrorMapper = platformMapper{} + type ResponseDetails struct + CurrentAccountID string + TraceID string Other modules containing this package github.com/primandproper/platform-go