Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type LoginParams ¶
type PrepareRequestFunc ¶
type PrepareRequestFunc func(request *resty.Request) *resty.Request
type Response ¶
type Response struct { Success bool `json:"success"` Message string `json:"message"` Data interface{} `json:"data"` }
Response is the default json return of the cmdb upon any request success or error
type ResponseError ¶
type ResponseError struct {
Response
}
ResponseError is used for the resty SetError Function as a reference to capture the error message on failure
func (ResponseError) Error ¶
func (res ResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.