Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ServerURL string `toml:"server_url"`
UserID string `toml:"user_id"`
Password string `toml:"password"`
DefaultChannel string `toml:"default_channel"`
IgnoreUsers []string `toml:"ignore_users"`
LogFile string `toml:"log_file,omitempty"`
PidFile string `toml:"pid_file,omitempty"`
ConnectionLog bool `toml:"connection_log"`
Debug bool `toml:"debug"`
Feeds *FeedsConfig `toml:"feeds"`
}
Config is a configuration for mybot.
func LoadConfigFile ¶
type FeedsConfig ¶
type FeedsConfig struct {
FeedsFile string `toml:"feeds_file,omitempty"`
StatesFile string `toml:"states_file,omitempty"`
NumWorkers int `toml:"workers,omitempty"`
Channel string `toml:"channel,omitempty"`
Title string `toml:"title,omitempty"`
Schedule string `toml:"schedule"`
}
FeedsConfig is a configuration for feedcrawler.
func (*FeedsConfig) WatcherConfig ¶ added in v0.2.0
func (fc *FeedsConfig) WatcherConfig() *feedwatcher.Config
Click to show internal directories.
Click to hide internal directories.