Documentation ¶
Index ¶
Constants ¶
View Source
const UserAgent = "" /* 129-byte string literal not displayed */
Variables ¶
View Source
var ErrInvalidURL = errors.New("webhook/file: invalid URL")
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct { Root string Options map[string]string // contains filtered or unexported fields }
func NewDownloader ¶
func NewDownloader(root string, client ...Client) *Downloader
func (*Downloader) Download ¶ added in v0.18.0
func (d *Downloader) Download(url string) error
func (*Downloader) Register ¶
func (d *Downloader) Register(client ...Client)
type WithUserAgent ¶ added in v0.17.0
type WithUserAgent []string
func (WithUserAgent) Hosts ¶ added in v0.17.0
func (c WithUserAgent) Hosts() []string
Click to show internal directories.
Click to hide internal directories.