telephonyobs

package
v1.43.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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 CarrierTx

type CarrierTx interface{}

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 CountryTx

type CountryTx interface{}

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 PhoneTx added in v1.43.0

type PhoneTx interface{}

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 ProjectTx

type ProjectTx interface{}

type Reporter

type Reporter interface {
	WithProject(id string) ProjectReporter
	WithDeferredProject() (ProjectReporter, KeyResolver)
}

func NewNoopReporter

func NewNoopReporter() Reporter

type Rollup

type Rollup string
const (
	RollupUndefined Rollup = ""
	RollupPhone     Rollup = "phone"
	RollupCall      Rollup = "call"
)

type TrunkType

type TrunkType string
const (
	TrunkTypeUndefined TrunkType = ""
	TrunkTypeInternal  TrunkType = "internal"
	TrunkTypeExternal  TrunkType = "external"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL