enable/disable a ClientEnd.
(endname interface{}, enabled bool)
| 354 | |
| 355 | // enable/disable a ClientEnd. |
| 356 | func (rn *Network) Enable(endname interface{}, enabled bool) { |
| 357 | rn.mu.Lock() |
| 358 | defer rn.mu.Unlock() |
| 359 | |
| 360 | rn.enabled[endname] = enabled |
| 361 | } |
| 362 | |
| 363 | // get a server's count of incoming RPCs. |
| 364 | func (rn *Network) GetCount(servername interface{}) int { |
no outgoing calls