Client describes a native ARI client, which connects directly to an Asterisk HTTP-based ARI service.
| 151 | |
| 152 | // Client describes a native ARI client, which connects directly to an Asterisk HTTP-based ARI service. |
| 153 | type Client struct { |
| 154 | appName string |
| 155 | |
| 156 | node string |
| 157 | |
| 158 | // opts are the configuration options for the client |
| 159 | Options *Options |
| 160 | |
| 161 | // WSConfig describes the configuration for the websocket connection to Asterisk, from which events will be received. |
| 162 | WSConfig *websocket.Config |
| 163 | |
| 164 | // connected is a flag indicating whether the Client is connected to Asterisk |
| 165 | connected bool |
| 166 | |
| 167 | // Bus the event bus for the Client |
| 168 | bus ari.Bus |
| 169 | |
| 170 | // httpClient is the reusable HTTP client on which commands to Asterisk are sent |
| 171 | httpClient http.Client |
| 172 | |
| 173 | cancel context.CancelFunc |
| 174 | } |
| 175 | |
| 176 | // ApplicationName returns the client's ARI Application name |
| 177 | func (c *Client) ApplicationName() string { |
nothing calls this directly
no outgoing calls
no test coverage detected