package
0.0.13
Repository: https://github.com/crowdsecurity/go-cs-lib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

New creates a new downloader for the given URL.
NewLimitedReader wraps a reader to read up to n bytes before stopping with ErrSizeLimitExceeded.
SHA256 returns the hash of the file if possible, empty string otherwise.

# Variables

No description provided by the author

# Structs

BadHTTPCodeError returned when the server responds with unexpected HTTP code.
Downloader fetches a file from a URL to a destination path, with various options.
NotFoundError returned by Download() when the remote resource is not found.