Documentation ¶
Index ¶
Constants ¶
View Source
const ( ZDX_API_KEY_ID = "ZDX_API_KEY_ID" ZDX_API_SECRET = "ZDX_API_SECRET" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type BackoffConfig ¶
type Client ¶
type Client struct {
Config *Config
}
type Config ¶
type Config struct { BaseURL *url.URL // The logger writer interface to write logging messages to. Defaults to standard out. Logger logger.Logger // Credentials for basic authentication. APIKeyID, APISecret string // Backoff config BackoffConf *BackoffConfig AuthToken *AuthToken sync.Mutex UserAgent string // contains filtered or unexported fields }
Config contains all the configuration data for the API client
func (*Config) GetHTTPClient ¶
func (*Config) SetBackoffConfig ¶
func (c *Config) SetBackoffConfig(backoffConf BackoffConfig)
type CredentialsConfig ¶
type ErrorResponse ¶
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
func (ErrorResponse) IsObjectNotFound ¶
func (r ErrorResponse) IsObjectNotFound() bool
IsObjectNotFound returns true on missing object error (404).
Click to show internal directories.
Click to hide internal directories.