extend/config/config.go
@@ -16,6 +16,14 @@ var Server = &server{} type weedfs struct { Ip string `mapstructure: "ip"` UploadPort int `mapstructure: "uploadport"` VisitPort int `mapstructure: "visitport"` } var WeedFs = &weedfs{} type redis struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` @@ -70,4 +78,5 @@ viper.UnmarshalKey("server", Server) viper.UnmarshalKey("redis", RedisConf) viper.UnmarshalKey("database", DBconf) viper.UnmarshalKey("weedfs", WeedFs) }