Reactor returns the reactor with the given name. NOTE: Not goroutine safe.
(name string)
| 203 | // Reactor returns the reactor with the given name. |
| 204 | // NOTE: Not goroutine safe. |
| 205 | func (sw *Switch) Reactor(name string) Reactor { |
| 206 | return sw.reactors[name] |
| 207 | } |
| 208 | |
| 209 | // SetNodeInfo sets the switch's NodeInfo for checking compatibility and handshaking with other nodes. |
| 210 | // NOTE: Not goroutine safe. |
no outgoing calls