Documentation
¶
Index ¶
- Constants
- type AsssessorId
- type IdScraper
- type JobMetadata
- type Property
- type PropertyPage
- type PropertySale
- type PropertyScraper
- func (s *PropertyScraper) Configure(pool *pgxpool.Pool) (err error)
- func (s *PropertyScraper) EnqueueJobs() ([]infra.Job, error)
- func (s *PropertyScraper) HandleResponse(_ infra.Job, resp *http.Response, err error) (*infra.Job, error)
- func (s *PropertyScraper) MakeRequest(j infra.Job) (*http.Request, error)
- type PropertyValue
- type Repo
- func (c *Repo) AllAssesorIds(action func(string) error)
- func (c *Repo) Close()
- func (c *Repo) FindProperty(id string) (*Property, error)
- func (c *Repo) FindUnseenAssessorIds(ids []string) ([]string, error)
- func (c *Repo) StoreNewProperties(properties []*Property) error
- func (c *Repo) StorePropertyPage(page *PropertyPage) error
Constants ¶
View Source
const (
IdScraperName = "ASSESSOR-IDS"
)
View Source
const (
PropertyScraperName = "ASSESSOR-PROPERTIES"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsssessorId ¶
type IdScraper ¶
type IdScraper struct {
// contains filtered or unexported fields
}
func NewIdScraper ¶
func NewIdScraper() *IdScraper
func (*IdScraper) HandleResponse ¶
type JobMetadata ¶
type Property ¶
type Property struct { Id int AssessorId string OwnerName string LocationAddress string MailingAddress string PropertyClass string TaxBillNumber string ParcelNo string AssessmentArea string LandAreaSqFt *int BuildingAreaSqFt *int LngLatPoint postgis.PointS InsertedAt time.Time UpdatedAt time.Time }
func ParseProperty ¶
type PropertyPage ¶
type PropertyPage struct {
// contains filtered or unexported fields
}
type PropertySale ¶
type PropertySale struct { Grantor string Grantee string NotarialArchiveNumber string InstrumentNumber string Date string Price *int InsertedAt time.Time UpdatedAt time.Time }
func ParseSales ¶
func ParseSales(doc *goquery.Document) []*PropertySale
type PropertyScraper ¶
type PropertyScraper struct {
// contains filtered or unexported fields
}
func NewPropertyScraper ¶
func NewPropertyScraper() *PropertyScraper
func (*PropertyScraper) Configure ¶
func (s *PropertyScraper) Configure(pool *pgxpool.Pool) (err error)
func (*PropertyScraper) EnqueueJobs ¶
func (s *PropertyScraper) EnqueueJobs() ([]infra.Job, error)
func (*PropertyScraper) HandleResponse ¶
func (*PropertyScraper) MakeRequest ¶
type PropertyValue ¶
type PropertyValue struct { Year *int LandValue *int BuildingValue *int TotalValue *int AssessedLandValue *int AssessedBuildingValue *int TotalAssessedValue *int HomesteadExemptionValue *int TaxableAssessment *int AgeFreeze *int DisabilityFreeze *int AssessmentChange *int TaxContract *int InsertedAt time.Time UpdatedAt time.Time }
func ParseValues ¶
func ParseValues(doc *goquery.Document) []*PropertyValue
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) AllAssesorIds ¶
func (*Repo) FindUnseenAssessorIds ¶
func (*Repo) StoreNewProperties ¶
func (*Repo) StorePropertyPage ¶
func (c *Repo) StorePropertyPage(page *PropertyPage) error
Click to show internal directories.
Click to hide internal directories.