Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFeedAlreadyExists = errors.New("config.AddFeed: feed already exists")
)
Functions ¶
func TLSVersion ¶ added in v2.6.0
TLSVersion maps one of a few supported TLS version strings to the corresponding standard TLS library constant so that an HTTP client can be configured.
Types ¶
type Backends ¶
type Backends struct { Miniflux *MinifluxBackend `yaml:"miniflux,omitempty"` FreshRSS *FreshRSSBackend `yaml:"freshrss,omitempty"` }
type Config ¶
type Config struct { ConfigPath string ShowFavourites bool Version string ConfigDir string `yaml:"-"` Pager string `yaml:"pager,omitempty"` Feeds []Feed `yaml:"feeds"` Ordering string `yaml:"ordering"` // Preview feeds are distinguished from Feeds because we don't want to inadvertenly write those into the config file. PreviewFeeds []Feed `yaml:"previewfeeds,omitempty"` Backends *Backends `yaml:"backends,omitempty"` ShowRead bool `yaml:"showread,omitempty"` AutoRead bool `yaml:"autoread,omitempty"` Openers []Opener `yaml:"openers,omitempty"` Theme Theme `yaml:"theme,omitempty"` HTTPOptions *HTTPOptions `yaml:"http,omitempty"` }
need to add to Load() below if loading from config file
func (*Config) IsPreviewMode ¶
func (*Config) ToggleShowFavourites ¶ added in v2.1.5
func (c *Config) ToggleShowFavourites()
func (*Config) ToggleShowRead ¶
func (c *Config) ToggleShowRead()
type FreshRSSBackend ¶
type FreshRSSFeed ¶
type FreshRSSFeed struct {
URL string `yaml:"url,omitempty"`
}
type FreshRSSResponse ¶
type FreshRSSResponse struct {
Subscriptions []FreshRSSFeed `yaml:"subscriptions,omitempty"`
}
type HTTPOptions ¶ added in v2.6.0
type HTTPOptions struct { //MinTLSVersion must be set to one of the strings returned by //tls.VersionName. "TLS 1.2" by default. MinTLSVersion string `yaml:"mintls,omitempty"` }
type MinifluxBackend ¶
Click to show internal directories.
Click to hide internal directories.