Documentation ¶
Overview ¶
Package gmitohtml converts Gemini pages to HTML.
Index ¶
- Constants
- Variables
- func AddBookmark(u string, label string)
- func Convert(page []byte, u string) []byte
- func GetBookmarks() map[string]string
- func LastRequestTime() int64
- func RemoveBookmark(u string)
- func SetClientCertificate(domain string, certificate []byte, privateKey []byte) error
- func SetOnBookmarksChanged(f func())
- func StartDaemon(address string, hostname string, allowFile bool) error
Constants ¶
View Source
const StyleCSS = `` /* 7465-byte string literal not displayed */
StyleCSS specifies page styling.
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 LastRequestTime ¶
func LastRequestTime() int64
LastRequestTime returns the time of the last request.
func SetClientCertificate ¶
SetClientCertificate sets the client certificate to use for a domain.
func SetOnBookmarksChanged ¶
func SetOnBookmarksChanged(f func())
SetOnBookmarksChanged sets the function called when a bookmark is changed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.