Versions in this module Expand all Collapse all v1 v1.0.0 Feb 26, 2020 Changes in this version + var SiteIds = map[string]int + type Config struct + AppID string + CertID string + Debug bool + DevID string + Domain string + Errors bool + HTTPS bool + RequestEncoding string + ResponseEncoding string + SiteID int + Timeout int + Token string + TrackingID string + TrackingPartnerCode string + URI string + Version int + Warnings bool + type Connection interface + BuildRequestData func() string + BuildRequestHeader func() map[string]string + Execute func(req Request) (Response, error) + type EbayResponse struct + Ack string + Build string + EBayTime string + Error ResponseErrors + Timestamp time.Time + Version string + func (r EbayResponse) Acknowledge() string + func (r EbayResponse) Failure() bool + func (r EbayResponse) ResponseErrors() Errors + func (r EbayResponse) Success() bool + func (r EbayResponse) Warning() bool + type Errors []ResponseError + func (err Errors) Error() string + type HTTPError struct + func (err HTTPError) Error() string + type Request interface + BodyXML func() string + Name func() string + ParseResponse func(content []byte) (Response, error) + type Response interface + Acknowledge func() string + Failure func() bool + ResponseErrors func() Errors + Success func() bool + Warning func() bool + func BuildRequest(config *Config, headers map[string]string, body string, request Request) (Response, error) + type ResponseError struct + Code string + Column string + ErrorClass string + ErrorClassification string + ErrorCode string + Line string + LongMessage string + Severity string + SeverityCode string + ShortMessage string + func (err ResponseError) Error() string + type ResponseErrors struct + Items []ResponseError + func (err ResponseErrors) Error() string + type Shopping struct + Config *Config + Request Request + func (c *Shopping) BuildRequestData() string + func (c *Shopping) BuildRequestHeader() map[string]string + func (c *Shopping) Execute(req Request) (Response, error) + type Trading struct + Config *Config + Request Request + func (c *Trading) BuildRequestData() string + func (c *Trading) BuildRequestHeader() map[string]string + func (c *Trading) Execute(req Request) (Response, error)