Documentation ¶
Index ¶
- Variables
- func NewHTTPClient() *http.Client
- func SetupCDNTransporter(cdnUrl string, tel string, password string, userAgent string, ...)
- func SetupDirectoryTransporter(Url string, uuid string, password string, userAgent string, proxyServer string)
- func SetupStorageTransporter(Url string, uuid string, password string, userAgent string, proxyServer string)
- func SetupTransporter(server string, uuid string, password string, userAgent string, ...)
- type AuthCredentials
- type SenderCertificate
- type Transporter
Constants ¶
This section is empty.
Variables ¶
View Source
var CdnTransport *httpTransporter
View Source
var DIRECTORY_AUTH_PATH = "/v1/directory/auth"
View Source
var DirectoryTransport *httpTransporter
View Source
var (
SENDER_CERTIFICATE_PATH = "/v1/certificate/delivery"
)
View Source
var StorageTransport *httpTransporter
Functions ¶
func NewHTTPClient ¶
func SetupCDNTransporter ¶
func SetupStorageTransporter ¶
Types ¶
type AuthCredentials ¶
AuthCredentials holds the credentials for the websocket connection
func GetCredendtails ¶
func GetCredendtails(path string) (*AuthCredentials, error)
func (*AuthCredentials) AsBasic ¶
func (a *AuthCredentials) AsBasic() string
type SenderCertificate ¶
type SenderCertificate struct {
Certificate []byte `json:"certificate"`
}
func GetSenderCertificate ¶
func GetSenderCertificate() (*SenderCertificate, error)
type Transporter ¶
type Transporter interface { Get(url string) (*response, error) GetByte(url string) (*response, error) GetWithAuth(url string, auth string) (*response, error) Del(url string) (*response, error) Post(url string, body []byte, contenttype string) (*response, error) PostWithAuth(url string, body []byte, contenttype string, auth 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) PutJSONWithUnidentifiedSender(url string, body []byte, unidentifiedAccessKey []byte) (*response, error) }
var Transport Transporter
Click to show internal directories.
Click to hide internal directories.