(addr string)
| 227 | } |
| 228 | |
| 229 | func (api *NodeAPI) GetFlashNode(addr string) (node proto.FlashNodeViewInfo, err error) { |
| 230 | err = api.mc.requestWith(&node, newRequest(get, proto.FlashNodeGet).Header(api.h).addParam("addr", addr)) |
| 231 | return |
| 232 | } |
| 233 | |
| 234 | func (api *NodeAPI) ListFlashNodes(active int) (zoneFlashNodes map[string][]*proto.FlashNodeViewInfo, err error) { |
| 235 | zoneFlashNodes = make(map[string][]*proto.FlashNodeViewInfo) |