MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / Get

Method Get

client/asterisk.go:43–52  ·  view source on GitHub ↗
(key *ari.Key)

Source from the content-addressed store, hash-verified

41}
42
43func (a *asteriskVariables) Get(key *ari.Key) (ret string, err error) {
44 data, err := a.c.dataRequest(&proxy.Request{
45 Kind: "AsteriskVariableGet",
46 Key: key,
47 })
48 if err != nil {
49 return "", err
50 }
51 return data.Variable, err
52}
53
54func (a *asteriskVariables) Set(key *ari.Key, val string) (err error) {
55 return a.c.commandRequest(&proxy.Request{

Callers

nothing calls this directly

Calls 1

dataRequestMethod · 0.80

Tested by

no test coverage detected