Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLogger ¶
func DefaultLogger() *zap.SugaredLogger
DefaultLogger creates the standard default logger to be used for the Client
Types ¶
type Address ¶
type Address struct { ErrorCode int `json:"ErrorCode"` ErrorMessage string `json:"ErrorMessage"` AddressLine1 string `json:"AddressLine1"` AddressLine2 string `json:"AddressLine2"` Number string `json:"Number"` PreDir string `json:"PreDir"` Street string `json:"Street"` Suffix string `json:"Suffix"` PostDir string `json:"PostDir"` Sec string `json:"Sec"` SecNumber string `json:"SecNumber"` SecValidated bool `json:"SecValidated"` City string `json:"City"` State string `json:"State"` Zip string `json:"Zip"` Zip4 string `json:"Zip4"` County string `json:"County"` UspsCarrierRoute string `json:"UspsCarrierRoute"` StateFP string `json:"StateFP"` CountyFP string `json:"CountyFP"` CensusTract string `json:"CensusTract"` CensusBlock string `json:"CensusBlock"` Latitude float32 `json:"Latitude"` Longitude float32 `json:"Longitude"` GeoPrecision int `json:"GeoPrecision"` TimeZoneOffset int `json:"TimeZoneOffset"` DstObserved bool `json:"DstObserved"` PlaceFP int `json:"PlaceFP"` CityMunicipality string `json:"CityMunicipality"` SalesTaxRate float32 `json:"SalesTaxRate"` SalesTaxJurisdiction int `json:"SalesTaxJurisdiction"` }
type Option ¶
type Option func(*defaultClient)
Option represents a Client option
func WithClient ¶
WithClient sets a custom client for making outgoing API calls
func WithLogger ¶
func WithLogger(logger *zap.SugaredLogger) Option
WithLogger sets a logger for the client. Passing `nil` or not calling this Option will prevent the Client from logging anything
type YaddressResult ¶
YaddressResponse
Click to show internal directories.
Click to hide internal directories.