Documentation
¶
Index ¶
- type HTTPClient
- func (c *HTTPClient) Delete(path string) (*checkout.StatusResponse, error)
- func (c *HTTPClient) Download(path string) (resp *checkout.StatusResponse, err error)
- func (c *HTTPClient) Get(path string) (*checkout.StatusResponse, error)
- func (c *HTTPClient) NewRequest(method, path string, body interface{}) (*http.Request, error)
- func (c *HTTPClient) Patch(path string, body interface{}) (*checkout.StatusResponse, error)
- func (c *HTTPClient) Post(path string, body interface{}, params *checkout.Params) (*checkout.StatusResponse, error)
- func (c *HTTPClient) Put(path string, body interface{}) (*checkout.StatusResponse, error)
- func (c *HTTPClient) Upload(path string, boundary string, body *bytes.Buffer) (resp *checkout.StatusResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
HTTPClient *http.Client
PublicKey string
SecretKey string
URI string
LeveledLogger checkout.LeveledLoggerInterface
MaxNetworkRetries int64
BearerAuthentication bool
// contains filtered or unexported fields
}
HTTPClient ...
func (*HTTPClient) Delete ¶
func (c *HTTPClient) Delete(path string) (*checkout.StatusResponse, error)
Delete ...
func (*HTTPClient) Download ¶
func (c *HTTPClient) Download(path string) (resp *checkout.StatusResponse, err error)
Download -
func (*HTTPClient) Get ¶
func (c *HTTPClient) Get(path string) (*checkout.StatusResponse, error)
Get ...
func (*HTTPClient) NewRequest ¶
func (c *HTTPClient) NewRequest(method, path string, body interface{}) (*http.Request, error)
NewRequest ...
func (*HTTPClient) Patch ¶
func (c *HTTPClient) Patch(path string, body interface{}) (*checkout.StatusResponse, error)
Patch ...
func (*HTTPClient) Post ¶
func (c *HTTPClient) Post(path string, body interface{}, params *checkout.Params) (*checkout.StatusResponse, error)
Post ...
func (*HTTPClient) Put ¶
func (c *HTTPClient) Put(path string, body interface{}) (*checkout.StatusResponse, error)
Put ...
func (*HTTPClient) Upload ¶
func (c *HTTPClient) Upload(path string, boundary string, body *bytes.Buffer) (resp *checkout.StatusResponse, err error)
Upload -
Click to show internal directories.
Click to hide internal directories.