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.

response.go 636 B

1234567891011121314151617181920212223242526
  1. package schsdk
  2. // 这个结构体无任何字段,但实现了Noop,每种MessageBody都要内嵌这个结构体
  3. type MessageBodyBase struct{}
  4. // 此处的receiver是指针
  5. func (b *MessageBodyBase) Noop() {}
  6. type AvailableNodesResp struct {
  7. MessageBodyBase
  8. AvailableNodes map[ModelID]AvailableNodes `json:"allNode"`
  9. }
  10. type AvailableNodes struct {
  11. MessageBodyBase
  12. //ModelID ModelID `json:"modelID"`
  13. JobID JobID `json:"jobID"`
  14. Nodes []NodeInfo `json:"nodes"`
  15. }
  16. type NodeInfo struct {
  17. MessageBodyBase
  18. InstanceID JobID `json:"instanceID"`
  19. NodeID NodeID `json:"nodeID"`
  20. Address Address `json:"address"`
  21. }