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

Method Create

client/logging.go:12–24  ·  view source on GitHub ↗
(key *ari.Key, levels string)

Source from the content-addressed store, hash-verified

10}
11
12func (l *logging) Create(key *ari.Key, levels string) (*ari.LogHandle, error) {
13 k, err := l.c.createRequest(&proxy.Request{
14 Kind: "AsteriskLoggingCreate",
15 Key: key,
16 AsteriskLoggingChannel: &proxy.AsteriskLoggingChannel{
17 Levels: levels,
18 },
19 })
20 if err != nil {
21 return nil, err
22 }
23 return ari.NewLogHandle(k, l), nil
24}
25
26func (l *logging) Data(key *ari.Key) (*ari.LogData, error) {
27 data, err := l.c.dataRequest(&proxy.Request{

Callers

nothing calls this directly

Calls 1

createRequestMethod · 0.80

Tested by

no test coverage detected