Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { XMLName xml.Name `json:"-" xml:"envelope"` StatusCode int `json:"-" xml:"-"` Status Status `json:"status" xml:"status"` Data interface{} `json:"data,omitempty" xml:"data,omitempty"` }
Envelope identifies the structure used to define a normalized endpoint response
func NewEnvelope ¶
NewEnvelope instantiates a new response data envelope structure
func (Envelope) SetEndpoint ¶
SetEndpoint assign the endpoint identifier to all stored error codes
func (Envelope) SetService ¶
SetService assign the service identifier to all stored error codes
type Error ¶
type Error struct { Service int `json:"-" xml:"-"` Endpoint int `json:"-" xml:"-"` Param int `json:"-" xml:"-"` Error int `json:"-" xml:"-"` Code string `json:"code" xml:"code"` Message string `json:"message" xml:"message"` }
Error @todo doc
Click to show internal directories.
Click to hide internal directories.