Project Moscato Team Messaging Middleware Implemetation Message Middleware by Golang Operate as Secure, Effectively
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

manage.go 338B

12345678910111213141516171819
  1. package modules
  2. //각 Microservice에 대한 정보 저장 노드
  3. type MSnode struct {
  4. nodeName string
  5. ipAddr string
  6. }
  7. func (node *MSnode) Getname() string {
  8. return node.nodeName
  9. }
  10. func (node *MSnode) Getipaddr() string {
  11. return node.ipAddr
  12. }
  13. //모든 Microservice정보 저장
  14. type MStable struct {
  15. IpTable map[string]MSnode
  16. }