MCPcopy Create free account
hub / github.com/koding/kite / Payload

Struct Payload

protocol/webrtc.go:29–46  ·  view source on GitHub ↗

Payload is the content of `payload` in the json

Source from the content-addressed store, hash-verified

27
28// Payload is the content of `payload` in the json
29type Payload struct {
30 Msg *string `json:"msg,omitempty"`
31 Sdp *struct {
32 Type *string `json:"type,omitempty"`
33 Sdp *string `json:"sdp,omitempty"`
34 } `json:"sdp,omitempty"`
35 Type *string `json:"type,omitempty"`
36 Label *string `json:"label,omitempty"`
37 ConnectionID *string `json:"connectionId,omitempty"`
38 Reliable *bool `json:"reliable,omitempty"`
39 Serialization *string `json:"serialization,omitempty"`
40 Browser *string `json:"browser,omitempty"`
41 Candidate *struct {
42 Candidate *string `json:"candidate,omitempty"`
43 SdpMid *string `json:"sdpMid,omitempty"`
44 SdpMLineIndex *int `json:"sdpMLineIndex,omitempty"`
45 } `json:"candidate,omitempty"`
46}
47
48// ParsePayload parses the payload if it is not parsed previously. This method
49// can be called concurrently.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected