You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

agent.go 720 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324
  1. package services
  2. import (
  3. coormq "gitlink.org.cn/cloudream/storage-common/pkgs/mq/coordinator"
  4. )
  5. func (service *Service) TempCacheReport(msg *coormq.TempCacheReport) {
  6. //service.db.BatchInsertOrUpdateCache(msg.Hashes, msg.NodeID)
  7. }
  8. func (service *Service) AgentStatusReport(msg *coormq.AgentStatusReport) {
  9. //jh:根据command中的Ip,插入节点延迟表,和节点表的NodeStatus
  10. //根据command中的Ip,插入节点延迟表
  11. // TODO
  12. /*
  13. ips := utils.GetAgentIps()
  14. Insert_NodeDelay(msg.Body.IP, ips, msg.Body.AgentDelay)
  15. //从配置表里读取节点地域NodeLocation
  16. //插入节点表的NodeStatus
  17. Insert_Node(msg.Body.IP, msg.Body.IP, msg.Body.IPFSStatus, msg.Body.LocalDirStatus)
  18. */
  19. }

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。