sendSpite sends a SpiteResponse via the stream, serializing access with sendMu.
(resp *clientpb.SpiteResponse)
| 233 | |
| 234 | // sendSpite sends a SpiteResponse via the stream, serializing access with sendMu. |
| 235 | func (b *Bridge) sendSpite(resp *clientpb.SpiteResponse) error { |
| 236 | b.sendMu.Lock() |
| 237 | defer b.sendMu.Unlock() |
| 238 | return b.spiteStream.Send(resp) |
| 239 | } |
| 240 | |
| 241 | // moduleContext builds a ModuleContext that gives modules access to |
| 242 | // bridge capabilities without exposing the Bridge struct directly. |
no test coverage detected