• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

go语言nsq源码解读九tcp和http中channel、topic的增删

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

通过前面多篇文章,nsqlookupd基本已经解读完毕了,不过在关于channel和topic的增删上还比较模糊,所以本篇将站在宏观的角度来总结一下,tcp.go和http.go两个文件中关于channel和topic的操作有哪些。

总结如下表:

模块 文件 所在方法名 调用方法 Registration
Category Key SubKey
TCP lookup_protocol_v1.go REGISTER AddProducer “channel” topic channel
AddProducer “topic” topic “”
UNREGISTER RemoveProducer “channel” topic channel
RemoveProducer “channel” topic “*”
RemoveProducer “topic” topic “”
IDENTIFY AddProducer “client” “” “”
HTTP http.go topicsHandler FindRegistrations “topic” “*” “”
channelsHandler FindRegistrations “channel” topicName “*”
lookupHandler FindRegistrations “channel” topicName “*”
FindRegistrations “topic” topicName “”
createTopicHandler AddRegistration “topic” topicName “”
deleteTopicHandler RemoveRegistration “channel” topicName “*”
RemoveRegistration “topic” topicName “”
tombstoneTopicProducerHandler FindProducers “topic” topicName “”
createChannelHandler AddRegistration “channel” topicName channelName
AddRegistration “topic” topicName “”
deleteChannelHandler RemoveRegistration “channel” topicName channelName
nodesHandler FindProducers “client” “” “”
LookupRegistrations “topic” “*” “”
FindProducers “topic” t “”


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Go 里的超时控制发布时间:2022-07-10
下一篇:
11.3Go开发博客发布时间:2022-07-10
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap