Move errors to gemini.go

This commit is contained in:
adnano
2020-10-13 20:10:04 -04:00
parent 2c1081966d
commit 4189a4f717
4 changed files with 13 additions and 23 deletions

View File

@@ -4,21 +4,12 @@ import (
"bufio"
"crypto/tls"
"crypto/x509"
"errors"
"io/ioutil"
"net"
"net/url"
"strconv"
)
// Client errors.
var (
ErrInvalidURL = errors.New("gemini: invalid URL")
ErrInvalidResponse = errors.New("gemini: invalid response")
ErrCertificateUnknown = errors.New("gemini: unknown certificate")
ErrCertificateNotTrusted = errors.New("gemini: certificate is not trusted")
)
// Request represents a Gemini request.
type Request struct {
// URL specifies the URL being requested.