MCPcopy Create free account
hub / github.com/CyCoreSystems/ari / Client

Struct Client

client/native/client.go:153–174  ·  view source on GitHub ↗

Client describes a native ARI client, which connects directly to an Asterisk HTTP-based ARI service.

Source from the content-addressed store, hash-verified

151
152// Client describes a native ARI client, which connects directly to an Asterisk HTTP-based ARI service.
153type 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
177func (c *Client) ApplicationName() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected