Documentation ¶
Index ¶
Constants ¶
View Source
const RenewedAuthTokenHeader = "X-Renewed-Auth-Token"
RenewedAuthTokenHeader : the header name of the renewd auth token.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Code int `json:"code"` Domain string `json:"domain"` Message string `json:"message,omitempty"` Reason string `json:"reason,omitempty"` Recovery string `json:"recovery,omitempty"` Field string `json:"field,omitempty"` }
Error : error with more details.
type Response ¶
type Response struct { Error *Error `json:"error,omitempty"` Status string `json:"status,omitempty"` ID string `json:"id,omitempty"` }
Response : structured JSON object
func NewStatusAndID ¶
NewStatusAndID : returns a new Response struct.
func (*Response) IsErrorNil ¶
IsErrorNil : returns true if it is an empty error.
Click to show internal directories.
Click to hide internal directories.