Documentation ¶
Index ¶
Constants ¶
const ( KeyIPCallAlias string = "ipcall_alias" KeyIPCallRelayToAlias = "ipcall_relay_to" KeyIPCallRelayFromAlias = "ipcall_relay_from" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioIO ¶
func NewAudioIO ¶
type BidiMap ¶
type BidiMap struct {
// contains filtered or unexported fields
}
BidiMap is a concurrency-safe, bidirectional map implementation (allowing lookups by either key or value). NOTE: a BidiMap should only be used when there exists a bijection (one-to-one mapping) between the keys.
The current implementaion builds on Go's `map` primitive, maintaining two maps (one for key and the other for value lookup). Synchronization is performed using a `sync.RWMutex`.
func NewBidiMap ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) OpenAudioChan ¶
Call opens a virtual audio channel with the given address. It begins recording audio from the local machine and relaying it to the given `addr`. Audio recorded remotely and relayed is played on the audio channel of the local machine. The call ends when the done channel is signalled.