Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultDebrickedUri = "https://debricked.com"
Variables ¶
View Source
var NoResErr = errors.New("failed to get response. Check out the Debricked status page: https://status.debricked.com/")
Functions ¶
func NewRetryClient ¶
func NewRetryClient() *retryablehttp.Client
Types ¶
type DebClient ¶
type DebClient struct {
// contains filtered or unexported fields
}
func NewDebClient ¶
func (*DebClient) SetAccessToken ¶ added in v1.1.0
type IDebClient ¶
type IDebClient interface { // Post makes a POST request to one of Debricked's API endpoints Post(uri string, contentType string, body *bytes.Buffer) (*http.Response, error) // Get makes a GET request to one of Debricked's API endpoints Get(uri string, format string) (*http.Response, error) SetAccessToken(accessToken *string) }
Click to show internal directories.
Click to hide internal directories.