Documentation ¶
Index ¶
- type AuthProvider
- type Option
- type Options
- func (o *Options) AllPreviews() bool
- func (o *Options) AuthProvider() AuthProvider
- func (o *Options) BaseURL() url.URL
- func (o *Options) HttpClient() *http.Client
- func (o *Options) RequiredPreviews() bool
- func (o *Options) SetAllPreviews(allPreviews bool)
- func (o *Options) SetAuthProvider(authProvider AuthProvider)
- func (o *Options) SetBaseURL(baseURL url.URL)
- func (o *Options) SetHttpClient(httpClient *http.Client)
- func (o *Options) SetRequiredPreviews(requiredPreviews bool)
- func (o *Options) SetUserAgent(userAgent string)
- func (o *Options) UserAgent() string
- type RequestError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
AuthProvider sets the Authorization header authenticate you with the API
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options is options
func BuildOptions ¶
BuildOptions turns a list of opt into *Options
func (*Options) AuthProvider ¶
func (o *Options) AuthProvider() AuthProvider
AuthProvider returns AuthProvider
func (*Options) HttpClient ¶
HttpClient return httpClient
func (*Options) RequiredPreviews ¶
RequiredPreviews returns bool
func (*Options) SetAllPreviews ¶
SetAllPreviews sets bool
func (*Options) SetAuthProvider ¶
func (o *Options) SetAuthProvider(authProvider AuthProvider)
SetAuthProvider sets AuthProvider
func (*Options) SetHttpClient ¶
SetHttpClient sets httpClient
func (*Options) SetRequiredPreviews ¶
SetRequiredPreviews sets bool
func (*Options) SetUserAgent ¶
SetUserAgent sets userAgent
type RequestError ¶
type RequestError struct {
Message string
}
RequestError is an error building an *http.Request
func (*RequestError) Error ¶
func (e *RequestError) Error() string
Click to show internal directories.
Click to hide internal directories.