-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy pathgen_reporter.go
More file actions
64 lines (53 loc) · 1.22 KB
/
gen_reporter.go
File metadata and controls
64 lines (53 loc) · 1.22 KB
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
60
61
62
63
64
// Code generated; DO NOT EDIT.
package corecallobs
import (
"time"
)
const Version_LA3TQS0 = true
type KeyResolver interface {
Resolve(string)
Reset()
}
type Reporter interface {
WithProject(id string) ProjectReporter
WithDeferredProject() (ProjectReporter, KeyResolver)
}
type projectReporter interface {
}
type ProjectTx interface {
projectReporter
}
type ProjectReporter interface {
RegisterFunc(func(ts time.Time, tx ProjectTx) bool)
Tx(func(tx ProjectTx))
TxAt(time.Time, func(tx ProjectTx))
WithCall(id string) CallReporter
WithDeferredCall() (CallReporter, KeyResolver)
projectReporter
}
type callReporter interface {
ReportStartTime(v time.Time)
ReportEndTime(v time.Time)
ReportDuration(v uint64)
ReportDurationSeconds(v uint64)
ReportDurationMinutes(v uint16)
ReportDirection(v CallDirection)
ReportCallType(v CallCallType)
ReportFrom(v string)
ReportTo(v string)
ReportRegion(v string)
ReportRoomID(v string)
ReportRoomName(v string)
ReportError(v string)
ReportStatus(v CallStatus)
}
type CallTx interface {
Project() ProjectTx
callReporter
}
type CallReporter interface {
RegisterFunc(func(ts time.Time, tx CallTx) bool)
Tx(func(tx CallTx))
TxAt(time.Time, func(tx CallTx))
callReporter
}