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
6b9cd006
authored
May 27, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
e5c9aedd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
pyMonit/main.go
pyMonit/main.go
View file @
6b9cd006
...
...
@@ -5,6 +5,7 @@ import (
"fmt"
"github.com/ichunt2019/golang-rbmq-sl/utils/rabbitmq"
"go-queue-server/dal/db"
"go-queue-server/pyMonit/api-service-log"
_
"sync"
_
"time"
)
...
...
@@ -22,7 +23,7 @@ type RecvPro struct {
//// 实现消费者 消费消息失败 自动进入延时尝试 尝试3次之后入库db
func
(
t
*
RecvPro
)
Consumer
(
dataByte
[]
byte
)
error
{
fmt
.
Println
(
string
(
dataByte
))
//
api_service_log.AddMsgtoRbmq(string(dataByte))
api_service_log
.
AddMsgtoRbmq
(
string
(
dataByte
))
return
nil
}
...
...
@@ -73,8 +74,8 @@ func main() {
t
:=
&
RecvPro
{}
rabbitmq
.
Recv
(
rabbitmq
.
QueueExchange
{
"
sz_
api_service_log"
,
"
sz_
api_service_log"
,
"api_service_log"
,
"api_service_log"
,
""
,
""
,
"amqp://WmsQue:EizM9I1TAxoO0tmzoOm@172.18.137.33:5672/"
,
...
...
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