Documentation ¶
Index ¶
- Variables
- func ABA() string
- func AreaCode() int
- func City() string
- func CountryCode() string
- func CountryCode3() string
- func CountryName() string
- func CustomerID() int
- func Db() string
- func Digits() string
- func DigitsN(n int) string
- func DmaCode() int
- func HexColor() string
- func HexColorShort() string
- func Latitude() float64
- func Longitude() float64
- func MetroCode() int
- func PostData(restProxyURL string, kafkaTopic string) (response map[string]interface{}, err error)
- func PostalCode() string
- func Region() string
- func RegionName() string
- func TimeZone() string
- func UserID() int
- type GeoIP
- type Record
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var KafkaTopic = "testtopic"
KafkaTopic sets the kafka topic
View Source
var RestProxyURL = "localhost:8082"
RestProxyURL sets the URL of the REST proxy
Functions ¶
func ABA ¶
func ABA() string
ABA returns a random 9 numeric digit string with about 27000 possible values.
Types ¶
type GeoIP ¶
type GeoIP struct { TimeZone string `json:"time_zone"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` CountryName string `json:"country_name"` DmaCode int `json:"dma_code"` City string `json:"city"` Region string `json:"region"` MetroCode int `json:"metro_code"` PostalCode string `json:"postal_code"` AreaCode int `json:"area_code"` RegionName string `json:"region_name"` CountryCode3 string `json:"country_code3"` CountryCode string `json:"country_code"` }
GeoIP is a struct used in PostData
func (GeoIP) MarshalJSON ¶
MarshalJSON returns a json Kafka can interpret
Click to show internal directories.
Click to hide internal directories.