Documentation
¶
Overview ¶
Package response wraps the functionality of the default response in the csp platform (see openapi.yaml file) and all other responses (interfaces)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComponentError ¶
type ComponentError struct {
Code int `json:"code,omitempty"`
Error string `json:"error,omitempty"`
}
ComponentError represents all the pit error infos if an error appears
type ErrorResponse ¶
type ErrorResponse struct {
Success bool `json:"success,omitempty"`
ComponentError ComponentError `json:"componentError,omitempty"`
}
ErrorResponse represents the structure of a error JSON response
type SuccessResponse ¶
type SuccessResponse struct {
Success bool `json:"success"`
Payload interface{} `json:"payload"`
}
SuccessResponse represents the structure of a successful JSON response
Click to show internal directories.
Click to hide internal directories.