Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusValid = "URL <{}> is Valid. " StatusInvalid = "URL <{}> is Invalid. " )
URL valid status messages.
Variables ¶
DefaultBulker is a default implementation of Bulker. The timeout is a maximum of 5 seconds and the amount of redirection it can have is 10 (http.Client default).
Functions ¶
This section is empty.
Types ¶
type Bulker ¶
type Bulker struct {
// contains filtered or unexported fields
}
Bulker type, that implements an HTTP client.
func (Bulker) CheckMultiple ¶
CheckMultiple is a concurrent function, that checks multiple URLs.
type Decoder ¶
Decoder is an interface, that should decode a file and return the URLs. If needed, implement your own type, that returns a string slice of URLs, and an error.
type LineDecoder ¶
type LineDecoder struct {
Body io.ReadCloser
}
LineDecoder represents a line-by-line body, from which the URLs are being decoded from.
func (LineDecoder) Decode ¶
func (d LineDecoder) Decode() ([]string, error)
Decode a body, that separates each URL with a newline.
Click to show internal directories.
Click to hide internal directories.