Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CtapiResponse ¶
type CtapiResponse struct {
StatusCode string `json:"statusCode,omitempty"`
// Error code, which is a three part code for product.module.code
Error string `json:"error,omitempty"`
// Error description during failure, usually in English
Message string `json:"message,omitempty"`
// Error description during failure, usually in Chinese
Description string `json:"description,omitempty"`
// Data returned upon success
ReturnObj interface{} `json:"returnObj"`
}
type OpenapiResponse ¶
type OpenapiResponse struct {
StatusCode int `json:"statusCode,omitempty"`
// Error code, which is a three part code for product.module.code
Error string `json:"error,omitempty"`
// Error description during failure, usually in English
Message string `json:"message,omitempty"`
// Error description during failure, usually in Chinese
Description string `json:"description,omitempty"`
// Data returned upon success
ReturnObj interface{} `json:"returnObj"`
}
type StatusDetails ¶
type StatusError ¶
type StatusError struct {
ErrStatus Status
}
func (*StatusError) Error ¶
func (e *StatusError) Error() string
Error implements the Error interface.
func (*StatusError) Status ¶
func (e *StatusError) Status() Status
Status allows access to e's status without having to know the detailed workings of StatusError.
func (*StatusError) Unwrap ¶
func (e *StatusError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.