






值得注意的是,由于pepperbus服务运行在docker容器中,此处不能使用127.0.0.1作为ip
busworker.NewWorkerRouter("/test/").RegisterJobHandler("testQueue","testTopic",testFunc)
busworker.Serve("192.168.238.141:4443")
func testFunc(r *http.Request) *Resp{
return &Resp{
ErrorCode:0,
Code:200,
Data:"hello",
}
}
在topic页面点击最右侧的测试按钮可即打开测试窗口


re := busworker.NewClient("192.168.238.141:12018")
re.AddJobs("testQueue","test",[]string{"test data1","test data2"})

Content type
Image
Digest
Size
19.5 MB
Last updated
about 6 years ago
docker pull huajiao/dashboard