Commit 7b9e605b by 孙龙

Merge branch 'master' of http://119.23.72.7/mushishixian/search_server

# Conflicts:
#	bat/course.bat
parents 956e629b a20a53f6
set MICRO_REGISTRY=etcd
set MICRO_REGISTRY_ADDRESS=192.168.2.232:2379
go run ../cmd/course_server.go --server_address :9091
\ No newline at end of file
go run ../cmd/course_server.go --server_address :9092
\ No newline at end of file
......@@ -4,15 +4,16 @@ import (
"search_server/pkg/config"
"search_server/pkg/gredis"
"search_server/pkg/logger"
"search_server/pkg/mysql"
)
func Boot(configPath string) (err error) {
if err = config.SetUp(configPath); err != nil {
panic(err)
}
//if err = mysql.Setup(); err != nil {
// return
//}
if err = mysql.Setup(); err != nil {
return
}
if err = gredis.Setup(); err != nil {
return
}
......
......@@ -12,8 +12,9 @@ import (
)
func main() {
var path string
flag.StringVar(&path, "config", "../conf/config.ini", "配置文件")
flag.StringVar(&path, "config", "conf/config.ini", "配置文件")
flag.Parse()
if err := boot.Boot(path); err != nil {
log.Println(err)
......
##bom_service 实现了bom的搜索
##bom_service 实现了bom的搜索,接口如下
......@@ -19,6 +19,7 @@ require (
github.com/joncalhoun/qson v0.0.0-20170526102502-8a9cab3a62b1 // indirect
github.com/mholt/certmagic v0.9.3 // indirect
github.com/micro/go-micro/v2 v2.9.0
github.com/micro/micro/v2 v2.9.1 // indirect
github.com/prometheus/client_golang v1.5.1 // indirect
github.com/prometheus/common v0.10.0
github.com/prometheus/procfs v0.0.11 // indirect
......
......@@ -18,6 +18,7 @@
├── protos //原始的protos文件
├── service //业务逻辑操作所在目录
### 已经封装的模块以及用法
#### 1.配置读取
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment