Documentation
¶
Overview ¶
Code generated; DO NOT EDIT.
Index ¶
Constants ¶
View Source
const Version_LQKK2M0 = true
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallReporter ¶
type CallReporter interface {
RegisterFunc(func(ts time.Time, tx CallTx) bool)
Tx(func(tx CallTx))
TxAt(time.Time, func(tx CallTx))
CallTx
}
func NewNoopCallReporter ¶
func NewNoopCallReporter() CallReporter
type CallStatus ¶
type CallStatus string
const ( CallStatusUndefined CallStatus = "" CallStatusAnswered CallStatus = "answered" CallStatusMissed CallStatus = "missed" CallStatusBusy CallStatus = "busy" CallStatusFailed CallStatus = "failed" )
type CallTx ¶
type CallTx interface {
ReportDirection(v DirectionType)
ReportNumberType(v NumberType)
ReportStatus(v CallStatus)
ReportTrunkType(v TrunkType)
ReportCountryCode(v string)
ReportPhoneNumber(v string)
ReportDuration(v uint32)
ReportDurationMinutes(v uint16)
ReportStartTime(v time.Time)
ReportEndTime(v time.Time)
}
type CarrierReporter ¶
type CarrierReporter interface {
RegisterFunc(func(ts time.Time, tx CarrierTx) bool)
Tx(func(tx CarrierTx))
TxAt(time.Time, func(tx CarrierTx))
WithCountry(code string) CountryReporter
WithDeferredCountry() (CountryReporter, KeyResolver)
CarrierTx
}
func NewNoopCarrierReporter ¶
func NewNoopCarrierReporter() CarrierReporter
type CountryReporter ¶
type CountryReporter interface {
RegisterFunc(func(ts time.Time, tx CountryTx) bool)
Tx(func(tx CountryTx))
TxAt(time.Time, func(tx CountryTx))
WithPhone(number string) PhoneReporter
WithDeferredPhone() (PhoneReporter, KeyResolver)
CountryTx
}
func NewNoopCountryReporter ¶
func NewNoopCountryReporter() CountryReporter
type DirectionType ¶
type DirectionType string
const ( DirectionTypeUndefined DirectionType = "" DirectionTypeInbound DirectionType = "inbound" DirectionTypeOutbound DirectionType = "outbound" )
type KeyResolver ¶
type KeyResolver interface {
Resolve(string)
Reset()
}
type NumberType ¶
type NumberType string
const ( NumberTypeUndefined NumberType = "" NumberTypeTollFree NumberType = "toll_free" NumberTypeRegular NumberType = "regular" )
type PhoneReporter ¶ added in v1.43.0
type PhoneReporter interface {
RegisterFunc(func(ts time.Time, tx PhoneTx) bool)
Tx(func(tx PhoneTx))
TxAt(time.Time, func(tx PhoneTx))
WithCall(id string) CallReporter
WithDeferredCall() (CallReporter, KeyResolver)
PhoneTx
}
func NewNoopPhoneReporter ¶ added in v1.43.0
func NewNoopPhoneReporter() PhoneReporter
type ProjectReporter ¶
type ProjectReporter interface {
RegisterFunc(func(ts time.Time, tx ProjectTx) bool)
Tx(func(tx ProjectTx))
TxAt(time.Time, func(tx ProjectTx))
WithCarrier(id string) CarrierReporter
WithDeferredCarrier() (CarrierReporter, KeyResolver)
ProjectTx
}
func NewNoopProjectReporter ¶
func NewNoopProjectReporter() ProjectReporter
type Reporter ¶
type Reporter interface {
WithProject(id string) ProjectReporter
WithDeferredProject() (ProjectReporter, KeyResolver)
}
func NewNoopReporter ¶
func NewNoopReporter() Reporter
Click to show internal directories.
Click to hide internal directories.