Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsIs ¶
type AsIs struct { XMLName xml.Name `json:"-" xml:"response"` Code int `json:"-" xml:"-"` Response interface{} `json:"response,omitempty" xml:",chardata"` }
AsIs - returns payload without any wrapping (even errors).
func (*AsIs) MarshalJSON ¶
func (*AsIs) SetPayload ¶
func (obj *AsIs) SetPayload(object interface{})
SetPayload - sets response payload into object.
type AsObject ¶
type AsObject struct { XMLName xml.Name `json:"-" xml:"response"` Code int `json:"-" xml:"-"` Result interface{} `json:"result,omitempty" xml:"result,omitempty"` ErrorString string `json:"error,omitempty" xml:"error,omitempty"` }
func (*AsObject) SetPayload ¶
func (a *AsObject) SetPayload(object interface{})
SetPayload - sets response payload into object.
Click to show internal directories.
Click to hide internal directories.