Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
go-api-behavior
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
1e83f268
authored
Mar 23, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
init
parent
0714cb3c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
README.md
config/db.toml.demo
README.md
View file @
1e83f268
go run .
\s
ervice
\b
ehavior
\m
ain.go -configDir=./config/ -logDir=./log/ -LogReportDir=./LogReport/
## 运行
**go run .\service\behavior\main.go -configDir=./config/ -logDir=./log/ -LogReportDir=./LogReport/**
{
## 测试json
{
"interface_type":"1",
"access_url":"api.ichun.com/v3/login",
"err_msg":"响应超时",
...
...
@@ -11,4 +14,9 @@ go run .\service\behavior\main.go -configDir=./config/ -logDir=./log/ -LogRepo
"remark":"a=1&b=2&c=3",
"create_time":1581582711,
"create_time_str":"2020-02-14 16:40"
}
\ No newline at end of file
}
## 配置修改
复制config目录下的
cp ./config/db.toml.demo ./config/db.toml
修改相关配置即可
\ No newline at end of file
config/db.toml.demo
View file @
1e83f268
[rabbitmq_ichunt]
queue_name="ichunt_monitor_user_behavior"
routing_key="ichunt_monitor_user_behavior"
...
...
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