Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResponseSizeLimit = (5 * megabyte) + 1337 ErrorUnknown = "Unknown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API2Result ¶
type API2Result struct { BaseResult Result json.RawMessage `json:"cpanelresult"` }
type ApiGateway ¶
type BaseAPI1Response ¶
type BaseAPI1Response struct { // other stuff here "apiversion":"1","type":"event","module":"Serverinfo","func":"servicestatus","source":"module" Data struct { Result string `json:"result"` } `json:"data"` ErrorString string `json:"error"` // "event":{"result":1,"reason":"blah blah"}} Event struct { Result int `json:"result"` Reason string `json:"reason"` } `json:"event"` }
func (BaseAPI1Response) Error ¶
func (r BaseAPI1Response) Error() error
type BaseAPI2Response ¶
type BaseAPI2Response struct { BaseResult Event struct { Result int `json:"result"` Reason string `json:"reason"` } `json:"event"` }
func (BaseAPI2Response) Error ¶
func (r BaseAPI2Response) Error() error
type BaseResult ¶
type BaseResult struct {
ErrorString string `json:"error"`
}
func (BaseResult) Error ¶
func (r BaseResult) Error() error
type BaseUAPIResponse ¶
type BaseUAPIResponse struct { BaseResult StatusCode int `json:"status"` Errors []string `json:"errors"` Messages []string `json:"messages"` }
func (BaseUAPIResponse) Error ¶
func (r BaseUAPIResponse) Error() error
func (BaseUAPIResponse) Message ¶
func (r BaseUAPIResponse) Message() string
type MaybeInt64 ¶
type MaybeInt64 int64
func (*MaybeInt64) MarshalJSON ¶
func (m *MaybeInt64) MarshalJSON() ([]byte, error)
func (*MaybeInt64) UnmarshalJSON ¶
func (m *MaybeInt64) UnmarshalJSON(buf []byte) error
type UAPIResult ¶
type UAPIResult struct { BaseResult Result json.RawMessage `json:"result"` }
Click to show internal directories.
Click to hide internal directories.