Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configs ¶
type Configs struct { Server ServerConfig `json:"server"` MongoDB MongoDB `json:"mongodb"` UrlCrawlerList UrlCrawlerList `json:"url_crawler_list"` FBConfig FBConfig `json:"fb_config"` Jobs Jobs `json:"jobs"` }
func LoadConfigs ¶
type Jobs ¶
type Jobs struct {
SyncArticlesFromFithou string `mapstructure:"SYNC_ARTICLES_FROM_FITHOU"`
}
type MappingConfigs ¶
type MappingConfigs struct { HttpServerAddress string `mapstructure:"HTTP_SERVER_ADDRESS"` Env string `mapstructure:"ENV"` AuthKey string `mapstructure:"AUTH_KEY"` Host string `mapstructure:"HOST"` Tz string `mapstructure:"TZ"` MongoDBUsername string `mapstructure:"MONGODB_USERNAME"` MongoDBPassword string `mapstructure:"MONGODB_PASSWORD"` MongoDBHost string `mapstructure:"MONGODB_HOST"` MongoDBReplicaSet string `mapstructure:"MONGODB_REPLICA_SET"` MongoDBName string `mapstructure:"MONGODB_NAME"` MongoDBProtocol string `mapstructure:"MONGODB_PROTOCOL"` FithouUrl string `mapstructure:"FITHOU_URL"` CtmsUrl string `mapstructure:"CTMS_URL"` FithouCategoriesUrl string `mapstructure:"FITHOU_CATEGORIES_URL"` ExamScheduleUrl string `mapstructure:"EXAM_SCHEDULE_URL"` SinhVienUrl string `mapstructure:"SINHVIEN_HOU_URL"` CasHouUrl string `mapstructure:"CAS_HOU_URL"` FBVerifyToken string `mapstructure:"FB_VERIFY_TOKEN"` AppCode string `mapstructure:"APP_CODE"` SyncArticlesFromFithou string `mapstructure:"SYNC_ARTICLES_FROM_FITHOU"` }
type MongoDB ¶
type MongoDB struct { MongoDBUsername string `mapstructure:"MONGODB_USERNAME" json:"MONGODB_USERNAME"` MongoDBPassword string `mapstructure:"MONGODB_PASSWORD" json:"MONGODB_PASSWORD"` MongoDBHost string `mapstructure:"MONGODB_HOST" json:"MONGODB_HOST"` MongoDBReplicaSet string `mapstructure:"MONGODB_REPLICA_SET" json:"MONGODB_REPLICA_SET"` MongoDBName string `mapstructure:"MONGODB_NAME" json:"MONGODB_NAME"` MongoDBProtocol string `mapstructure:"MONGODB_PROTOCOL" json:"MONGODB_PROTOCOL"` }
type ServerConfig ¶
type UrlCrawlerList ¶
type UrlCrawlerList struct { FithouUrl string `mapstructure:"FITHOU_URL"` CtmsUrl string `mapstructure:"CTMS_URL"` FithouCategoriesUrl string `mapstructure:"FITHOU_CATEGORIES_URL"` ExamScheduleUrl string `mapstructure:"EXAM_SCHEDULE_URL"` SinhVienUrl string `mapstructure:"SINHVIEN_HOU_URL"` CasHouUrl string `mapstructure:"CAS_HOU_URL"` }
Click to show internal directories.
Click to hide internal directories.