WebRTCSignalMessage represents a signalling message between peers and the singalling server
| 15 | |
| 16 | // WebRTCSignalMessage represents a signalling message between peers and the singalling server |
| 17 | type WebRTCSignalMessage struct { |
| 18 | Type string `json:"type,omitempty"` |
| 19 | Src string `json:"src,omitempty"` |
| 20 | Dst string `json:"dst,omitempty"` |
| 21 | Payload json.RawMessage `json:"payload,omitempty"` |
| 22 | |
| 23 | parsedPayload *Payload |
| 24 | isParsed bool |
| 25 | mu sync.Mutex |
| 26 | } |
| 27 | |
| 28 | // Payload is the content of `payload` in the json |
| 29 | type Payload struct { |
nothing calls this directly
no outgoing calls
no test coverage detected