package
Version:
v0.0.0-...-b0bf993
Opens a new window with list of versions in this module.
Published: Apr 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
EncodeError encodes errors from business-logic.
const (
ErrCodeUnknown ErrorCode = iota
ErrCodeNotFound
ErrCodeInvalidArgument
)
type ErrorResponse struct {
Message any `json:"message"`
Error any `json:"error"`
}
type ValidatorError struct {
Field string `json:"field"`
Message string `json:"message"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.