IsDirected reports whether the envelope targets a specific peer.
()
| 233 | |
| 234 | // IsDirected reports whether the envelope targets a specific peer. |
| 235 | func (e Envelope) IsDirected() bool { |
| 236 | return e.To != nil |
| 237 | } |
| 238 | |
| 239 | // IsBroadcast reports whether the envelope is channel-broadcast. |
| 240 | func (e Envelope) IsBroadcast() bool { |
no outgoing calls