call

package
v0.0.0-...-18f3c65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL