Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-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
ca5f275b
authored
Jan 02, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加配置
parent
dbb8547f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
util/config.go
util/config.go
View file @
ca5f275b
...
...
@@ -9,6 +9,7 @@ import (
type
Config
struct
{
Liexin_databases
*
LiexinMysqlConfig
Rabbitmq_ichunt
*
RabbitmqIchunt
Crm_domain
*
SendMail
}
...
...
@@ -24,6 +25,10 @@ type RabbitmqIchunt struct {
Dns
string
`toml:"dns"`
}
type
SendMail
struct
{
SendMailUrl
string
`toml:"send_mail"`
}
var
Configs
*
Config
=
new
(
Config
)
func
Init
(){
...
...
@@ -31,6 +36,6 @@ func Init(){
if
err
!=
nil
{
fmt
.
Println
(
err
)
}
//fmt.Printf("%+v",Configs.Liexin_databases
)
//
fmt.Printf("%+v",Configs.Rabbitmq_ichunt)
fmt
.
Printf
(
"%+v"
,
Configs
.
Crm_domain
)
fmt
.
Printf
(
"%+v"
,
Configs
.
Rabbitmq_ichunt
)
}
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