gmitohtml

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 16 Imported by: 1

Documentation

Overview

Package gmitohtml converts Gemini pages to HTML.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCertificate = errors.New("invalid certificate")

ErrInvalidCertificate is the error returned when an invalid certificate is provided.

View Source
var ErrInvalidURL = errors.New("invalid URL")

ErrInvalidURL is the error returned when the URL is invalid.

Functions

func Convert

func Convert(page []byte, u string) []byte

Convert converts text/gemini to text/html.

func LastRequestTime

func LastRequestTime() int64

LastRequestTime returns the time of the last request.

func SetClientCertificate

func SetClientCertificate(domain string, certificate []byte, privateKey []byte) error

SetClientCertificate sets the client certificate to use for a domain.

func StartDaemon

func StartDaemon(address string) error

StartDaemon starts the page conversion daemon.

Types

This section is empty.

Jump to

Keyboard shortcuts

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