Versions in this module Expand all Collapse all v1 v1.0.1 Jul 22, 2017 Changes in this version + var CSRFTokenHashKey = []byte("CHANGE_THIS_BEFORE_DEPLOYING_YOU_GIT") + var Configpaths = []string + var EmailTokenHashKey = []byte("CHANGE_THIS_BEFORE_DEPLOYING_YOU_GIT") + func BindFlags() func() + func IsSukebei() bool + func Reload() + func WebAddress() string + type CacheConfig struct + Dialect string + Size float64 + URL string + type Config struct + AuthTokenExpirationDay int + Build string + Cache CacheConfig + CommentLength int + Cookies CookiesConfig + DBLogMode string + DBParams string + DBType string + DescriptionLength int + Email EmailConfig + EnableSecureCSRF bool + Environment string + Host string + I18n I18nConfig + I2P *I2PConfig + Log LogConfig + MetainfoFetcher MetainfoFetcherConfig + Models ModelsConfig + Navigation NavigationConfig + Port int + Scrape ScraperConfig + Search SearchConfig + Torrents TorrentsConfig + Users UsersConfig + Version string + WebAddress WebAddressConfig + func Get() *Config + func (config *Config) Pretty(output io.Writer) error + type CookiesConfig struct + DomainName string + EncryptionKey string + HashKey string + MaxAge int + type EmailConfig struct + From string + Host string + Password string + Port int + SendEmail bool + TestTo string + Timeout int + Username string + type I18nConfig struct + DefaultLanguage string + Directory string + type I2PConfig struct + Addr string + Keyfile string + Name string + type LogConfig struct + AccessLogFileExtension string + AccessLogFilePath string + AccessLogMaxAge int + AccessLogMaxBackups int + AccessLogMaxSize int + ErrorLogFileExtension string + ErrorLogFilePath string + ErrorLogMaxAge int + ErrorLogMaxBackups int + ErrorLogMaxSize int + type MetainfoFetcherConfig struct + BaseFailCooldown int + DownloadRateLimitKiB int + FetchNewTorrentsOnly bool + MaxDays int + MaxFailCooldown int + QueueSize int + Timeout int + UploadRateLimitKiB int + WakeUpInterval int + type ModelsConfig struct + ActivityTableName string + CommentsTableName string + FilesTableName string + LastOldTorrentID uint + NotificationsTableName string + ReportsTableName string + ScrapeTableName string + TorrentsTableName string + UploadsOldTableName string + type NavigationConfig struct + MaxTorrentsPerPage int + TorrentsPerPage int + type ScrapeConfig struct + IntervalSeconds int64 + Name string + URL string + type ScraperConfig struct + Addr string + IntervalSeconds int64 + NumWorkers int + Trackers []ScrapeConfig + type SearchConfig struct + ElasticsearchAnalyzer string + ElasticsearchIndex string + ElasticsearchType string + type TorrentsConfig struct + AdditionalLanguages []string + AdminsAreStillAllowedTo bool + CacheLink string + CleanCategories map[string]string + EnglishOnlyCategories []string + FileStorage string + NonEnglishOnlyCategories []string + Order string + Sort string + Status []bool + StorageLink string + SukebeiCategories map[string]string + Trackers TrackersConfig + TrustedUsersAreStillAllowedTo bool + UploadsDisabled bool + type TrackersConfig struct + Default []string + NeededTrackers []int + type UsersConfig struct + DefaultUserSettings map[string]bool + type WebAddressConfig struct + Nyaa string + Status string + Sukebei string