forked from hwiorn/ari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.go
59 lines (41 loc) · 1.37 KB
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package ari
// Client represents a set of operations to interact
// with an Asterisk ARI server. It is agnostic to transport
// and implementation.
type Client interface {
// ApplicationName returns the ARI application name by which this client is connected
ApplicationName() string
// Bus returns the event bus of the client
Bus() Bus
// Connected indicates whether the Websocket is connected
Connected() bool
// Close shuts down the client
Close()
//
// ARI Namespaces
//
// Application access the Application ARI namespace
Application() Application
// Asterisk accesses the Asterisk ARI namespace
Asterisk() Asterisk
// Bridge accesses the Bridge ARI namespace
Bridge() Bridge
// Channel accesses the Channel ARI namespace
Channel() Channel
// DeviceState accesses the DeviceState ARI namespace
DeviceState() DeviceState
// Endpoint accesses the Endpoint ARI namespace
Endpoint() Endpoint
// LiveRecording accesses the LiveRecording ARI namespace
LiveRecording() LiveRecording
// Mailbox accesses the Mailbox ARI namespace
Mailbox() Mailbox
// Playback accesses the Playback ARI namespace
Playback() Playback
// Sound accesses the Sound ARI namespace
Sound() Sound
// StoredRecording accesses the StoredRecording ARI namespace
StoredRecording() StoredRecording
// TextMessage accesses the TextMessage ARI namespace
TextMessage() TextMessage
}