Documentation
¶
Index ¶
Constants ¶
View Source
const ( CarrierATT = "att" CarrierSprint = "sprint" CarrierTMobile = "tmobile" CarrierVerizon = "verizon" LineTypeLocal = "local" LineTypeMobile = "mobile" LineTypeTollFree = "tollfree" SourceEkata = "ekata" SourceNumverify = "numverify" SourcePlivo = "plivo" SourceTwilio = "twilio" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarrierNumberInfo ¶ added in v0.2.0
type CarrierNumberInfo struct { E164Number string `json:"e164Number"` MobileCountryCode string `json:"mobileCountryCode,omitempty"` MobileNetworkCode string `json:"mobileNetworkCode,omitempty"` Name string `json:"name,omitempty"` LineType string `json:"lineType,omitempty"` ErrorCode string `json:"errorCode,omitempty"` }
type Components ¶
type Lookup ¶ added in v0.2.0
type Lookup struct { CarrierNumberInfo CarrierNumberInfo `json:"carrierNumberInfo"` LookupSource string `json:"lookupSource"` LookupTime time.Time `json:"lookupTime"` LookupResponse map[string]interface{} `json:"lookupResponse"` }
type LookupSet ¶ added in v0.2.0
func NewLookupSet ¶ added in v0.2.0
func NewLookupSet() LookupSet
type MapStringString ¶ added in v0.2.0
type Number ¶ added in v0.2.0
type Number struct { E164Number string `json:"e164Number"` CountryCode string `json:"countryCode"` CarrierNumberInfo CarrierNumberInfo `json:"carrier"` Lookups LookupSet `json:"lookups"` }
func (*Number) NANPComponents ¶ added in v0.2.0
func (num *Number) NANPComponents() (Components, error)
type NumberSet ¶ added in v0.2.0
func NewNumberSet ¶ added in v0.2.0
func NewNumberSet() NumberSet
func (*NumberSet) MapNumberCarrierName ¶ added in v0.2.0
func (*NumberSet) MapNumberLineType ¶ added in v0.2.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.