Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lzzzzl
/
golang_seo_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f13c1695
authored
Dec 03, 2020
by
lzzzzl
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
检测db是否连接
parent
eaffd661
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
cmd/main.go
cmd/main.go
View file @
f13c1695
...
...
@@ -72,11 +72,31 @@ func main() {
_
=
logger
.
InitLogger
(
"file"
,
logConfig
)
logger
.
Init
()
_
=
initDb
(
"InitSeoDB"
,
util
.
Configs
.
Seo_databases
.
Dns
)
_
=
initDb
(
"InitSpuDB"
,
util
.
Configs
.
Spu_databases
.
Dns
)
_
=
initDb
(
"InitGoodsDB"
,
util
.
Configs
.
Goods_databases
.
Dns
)
_
=
initDb
(
"InitSkuDB"
,
util
.
Configs
.
Sku_databases
.
Dns
)
_
=
initDb
(
"InitLxDB"
,
util
.
Configs
.
Liexin_databases
.
Dns
)
err_seo
:=
initDb
(
"InitSeoDB"
,
util
.
Configs
.
Seo_databases
.
Dns
)
err_spu
:=
initDb
(
"InitSpuDB"
,
util
.
Configs
.
Spu_databases
.
Dns
)
err_goods
:=
initDb
(
"InitGoodsDB"
,
util
.
Configs
.
Goods_databases
.
Dns
)
err_sku
:=
initDb
(
"InitSkuDB"
,
util
.
Configs
.
Sku_databases
.
Dns
)
err_lx
:=
initDb
(
"InitLxDB"
,
util
.
Configs
.
Liexin_databases
.
Dns
)
if
err_goods
!=
nil
{
fmt
.
Println
(
err_goods
)
}
if
err_spu
!=
nil
{
fmt
.
Println
(
err_goods
)
}
if
err_seo
!=
nil
{
fmt
.
Println
(
err_seo
)
}
if
err_sku
!=
nil
{
fmt
.
Println
(
err_sku
)
}
if
err_lx
!=
nil
{
fmt
.
Println
(
err_lx
)
}
t
:=
&
RecvPro
{}
go
rabbitmq
.
Recv
(
rabbitmq
.
QueueExchange
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment