Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCfg = `` /* 1264-byte string literal not displayed */
DefaultCfg shows the default configuration of the readeef server
Functions ¶
This section is empty.
Types ¶
type API ¶
type Config ¶
type Config struct { Server Server `toml:"server"` Log Log `toml:"log"` API API `toml:"api"` Timeout Timeout `toml:"timeout"` DB DB `toml:"db"` Auth Auth `toml:"auth"` Hubbub Hubbub `toml:"hubbub"` Popularity Popularity `toml:"popularity"` FeedParser FeedParser `toml:"feed-parser"` FeedManager FeedManager `toml:"feed-manager"` Content Content `toml:"content"` UI UI `toml:"ui"` }
Config is the readeef configuration
type Content ¶
type Content struct { Thumbnail struct { Generator string `toml:"generator"` Store bool `toml:"store"` } `toml:"thumbnail"` Extract struct { Generator string `toml:"generator"` ReadabilityKey string `toml:"readability-key"` } `toml:"extract"` Search struct { Provider string `toml:"provider"` BatchSize int64 `toml:"batch-size"` BlevePath string `toml:"bleve-path"` ElasticURL string `toml:"elastic-url"` } `toml:"search"` Article struct { Processors []string `toml:"processors"` ProxyHTTPURLTemplate string `toml:"proxy-http-url-template"` } `toml:"article"` // deprecated ThumbnailGenerator string `toml:"thumbnail-generator"` }
type FeedManager ¶
type FeedManager struct { UpdateInterval string `toml:"update-interval"` Monitors []string `toml:"monitors"` Converted struct { UpdateInterval time.Duration } `toml:"-"` }
func (*FeedManager) Convert ¶
func (c *FeedManager) Convert()
type FeedParser ¶
type Hubbub ¶
type Hubbub struct { CallbackURL string `toml:"callback-url"` // http://www.example.com From string `toml:"from"` }
type Log ¶
type Popularity ¶
type Popularity struct { Delay string `toml:"delay"` Providers []string `toml:"providers"` Twitter struct { ConsumerKey string `toml:"consumer-key"` ConsumerSecret string `toml:"consumer-secret"` AccessToken string `toml:"access-token"` AccessTokenSecret string `toml:"access-token-secret"` } `toml:"twitter"` Reddit struct { ID string `toml:"id"` Secret string `toml:"secret"` Username string `toml:"username"` Password string `toml:"password"` } `toml:"reddit"` Converted struct { Delay time.Duration } `toml:"-"` }
func (*Popularity) Convert ¶
func (c *Popularity) Convert()
Click to show internal directories.
Click to hide internal directories.