Documentation ¶
Overview ¶
Package poit implements a search query to the POIT website, poit.bolagsverket.se.
Index ¶
Constants ¶
const ( PubliceringsIntervallLastWeek = "1" PubliceringsIntervallLastMonth = "2" PubliceringsIntervallLastQuarter = "3" PubliceringsIntervallLastHalfYear = "5" PubliceringsIntervallLastYear = "6" )
PubliceringsIntervall
const ( AmnesomradeSamtliga = "-1" AmnesomradeKallelser = "1" AmnesomradeBolagsverket = "2" AmnesomradeKonkurser = "3" AmnesomradeFamiljeratt = "4" AmnesomradeSkuldsaneringar = "5" AmnesomradeRealEstate = "8" )
Amnesomrade
const ( KundTypSamtliga = "-1" //Alla KundTypKommun = "33" //Kommun )
KundTyp
const BaseURL = "https://poit.bolagsverket.se"
BaseURL is the where POIT is located
const MaxNumberOfSessions = 20
MaxNumberOfSessions is the max number of parallell sessions
const PoitURL = "https://poit.bolagsverket.se/poit/PublikPoitIn.do"
PoitURL is where search starts
const SearchURL = "https://poit.bolagsverket.se/poit/PublikSokKungorelse.do"
SearchURL is Search App
Variables ¶
This section is empty.
Functions ¶
func SearchPermits ¶
SearchPermits published by a specific municipiality (kommun)
func SearchWithDetails ¶
func SearchWithDetails(q Query) chan Announcement
SearchWithDetails is same as Search but is also loading separarete document texts
func TrimInnerText ¶
TrimInnerText returns inner text trimmed of space
Types ¶
type Announcement ¶
Announcement is a search result item
func (Announcement) ID ¶
func (a Announcement) ID() string
ID returns the announcement ID or empty string
func (Announcement) Name ¶
func (a Announcement) Name() string
Name returns the announcement name or empty string
func (Announcement) Published ¶
func (a Announcement) Published() time.Time
Published returns the published date
func (Announcement) URL ¶
func (a Announcement) URL() string
URL returns the URL to announcement text