| | |
| | | |
| | | var DBconf = &database{} |
| | | |
| | | type facedetect struct { |
| | | Url string `mapstructure:"url"` |
| | | } |
| | | |
| | | type dbpersoncompare struct { |
| | | Url string `mapstructure:"url"` |
| | | } |
| | |
| | | |
| | | var EsCompServerInfo = &espersoncompare{} |
| | | |
| | | var FaceDetectSet = &facedetect{} |
| | | |
| | | // Init is an exported method that takes the environment starts the viper |
| | | // (external lib) and returns the configuration struct. |
| | |
| | | viper.UnmarshalKey("database", DBconf) |
| | | viper.UnmarshalKey("weedfs", WeedFs) |
| | | viper.UnmarshalKey("sopath",SoPath) |
| | | viper.UnmarshalKey("facedetect", FaceDetectSet) |
| | | viper.UnmarshalKey("dbpersoncompare",DbPersonCompInfo) |
| | | viper.UnmarshalKey("espersoncompare", EsCompServerInfo) |
| | | } |