gemini

package
v0.0.0-...-f9fb8cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CertChanged = errors.New("cert has changed")
View Source
var NotFound = errors.New("cert not found")

Functions

This section is empty.

Types

type CertStore

type CertStore struct {
	Certificates map[string]string
	// contains filtered or unexported fields
}

func Load

func Load(savePath string) (*CertStore, error)

func (*CertStore) Check

func (cs *CertStore) Check(host string, cert *x509.Certificate, skipVerify bool) error

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(certsPath string) (*Client, error)

func (*Client) LoadURL

func (client *Client) LoadURL(ctx context.Context, surl url.URL, skipVerify bool) (*Response, error)
type Header struct {
	Status, StatusDetail uint8
	Meta                 string
}
type Link struct {
	URL  string
	Name string
}
func ParseLink(line string) (*Link, error)

func (*Link) FullURL

func (l *Link) FullURL(parent string) string

type Response

type Response struct {
	Body   string
	Header Header
	URL    string
	Source []byte
}

func (*Response) GetBody

func (r *Response) GetBody() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL