| 16 | } |
| 17 | |
| 18 | type WSRendererBridge struct { |
| 19 | sessionID string |
| 20 | emit func(PushEvent) |
| 21 | nextSeq func() int64 |
| 22 | |
| 23 | mu sync.Mutex |
| 24 | permissions map[string]permissionWaiter |
| 25 | selections map[string]chan *string |
| 26 | } |
| 27 | |
| 28 | func NewWSRendererBridge(sessionID string, emit func(PushEvent), nextSeq func() int64) *WSRendererBridge { |
| 29 | return &WSRendererBridge{ |
nothing calls this directly
no outgoing calls
no test coverage detected