Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCall ¶
func NewCall(options CallOptions, logicCh chan CallEvent)
Types ¶
type CallEvent ¶
type CallEvent struct { EventType CallEventType EventData string }
Define a generic struct to deal with events Every event will contain the following information: - The eventType (see enum above) - The eventData (JSON string that we can unmarshall into the expected struct based on eventType)
type CallEventType ¶
type CallEventType int
Call events that logic and call can send using the comms channel created They are identified by a CallEventId
const ( CALL_EVENT_ANSWER CallEventType = 0 // Call was answered CALL_EVENT_BYE CallEventType = 1 // Call finished CALL_EVENT_NOTIFY CallEventType = 2 // Logic notification )
type CallOptions ¶
type CallOptions struct { RequestURIString string // Remote peer URI PublicIP string // local IP address }
Call options
Click to show internal directories.
Click to hide internal directories.