Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
ErrorResponse checks if MSS returned an error in its response and formats it accordingly.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(h http.Client, c Credentials) Client
NewClient creates a new client for requests to MSS. Make sure to pass an http.Client with a reasonable timeout, e.g. 10–20 seconds.
func NewDefaultClient ¶
func NewDefaultClient(c Credentials) Client
NewDefaultClient creates a new default client for requests to MSS. The underlying http.Client is preconfigured with reasonable settings.
func (Client) RequestXML ¶
RequestXML takes a callback to construct the request root, marshals it to XML, sends it to MSS and outputs the MSS XML response body as io.ReadCloser.
type Credentials ¶
Click to show internal directories.
Click to hide internal directories.