Documentation ¶
Index ¶
- Variables
- func NewHTTPClient() *http.Client
- func SetupCDNTransporter(cdnUrl string, tel string, password string, userAgent string, ...)
- func SetupDirectoryTransporter(Url string, tel string, password string, userAgent string, proxyServer string)
- func SetupStorageTransporter(Url string, tel string, password string, userAgent string, proxyServer string)
- func SetupTransporter(server string, tel string, password string, userAgent string, ...)
- type Transporter
Constants ¶
This section is empty.
Variables ¶
View Source
var CdnTransport *httpTransporter
View Source
var DirectoryTransport *httpTransporter
View Source
var StorageTransport *httpTransporter
Functions ¶
func NewHTTPClient ¶
func SetupCDNTransporter ¶
func SetupStorageTransporter ¶ added in v1.3.0
Types ¶
type Transporter ¶
type Transporter interface { Get(url string) (*response, error) Del(url string) (*response, error) Put(url string, body []byte, ct string) (*response, error) PutWithAuth(url string, body []byte, ct string, auth string) (*response, error) PutJSON(url string, body []byte) (*response, error) PutBinary(url string, body []byte) (*response, error) PutJSONWithAuth(url string, body []byte, auth string) (*response, error) }
var Transport Transporter
Click to show internal directories.
Click to hide internal directories.