gmitohtml-upstream/pkg/gmitohtml/config.go

28 lines
391 B
Go
Raw Normal View History

2021-07-09 23:19:30 +02:00
package gmitohtml
2020-11-24 18:29:57 +01:00
import (
"crypto/tls"
)
2021-07-10 05:09:11 +02:00
type CertConfig struct {
2020-11-24 18:29:57 +01:00
Cert string
Key string
cert tls.Certificate
}
2021-07-10 05:09:11 +02:00
type AppConfig struct {
2020-11-27 05:43:03 +01:00
Bookmarks map[string]string
// Convert image links to images instead of normal links
ConvertImages bool
2021-07-10 05:09:11 +02:00
Certs map[string]*CertConfig
2020-11-24 18:29:57 +01:00
}
2021-07-10 05:09:11 +02:00
var Config = &AppConfig{
2020-11-27 05:43:03 +01:00
Bookmarks: make(map[string]string),
2021-07-10 05:09:11 +02:00
Certs: make(map[string]*CertConfig),
2020-11-27 05:43:03 +01:00
}