Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoDataOnPage = errors.New("can't find trial data")
)
Functions ¶
func MutableValues ¶
Types ¶
type DownloadResult ¶
type DownloadResult struct { CourtID string `json:"court_id"` Err string `json:"err"` Trials []Trial `json:"trials"` Date string `json:"date"` Fetch fetch `json:"fetch"` }
func BulkDownload ¶
type Downloader ¶
type Downloader interface { // Downloads all trials. // // date is string in format YYYY-MM-DD. Download(ctx context.Context, date string) ([]Trial, error) }
func NewDownloader ¶
func NewDownloader(client *http.Client, baseUrl string, appID string) Downloader
type Trial ¶
type Trial struct { CaseID string `json:"case_id"` Department string `json:"department"` Judges []string `json:"judges"` Date time.Time `json:"date"` Room string `json:"room"` }
func ParseV2 ¶
ParseV1 parses one page from type pages like "https://bialystok.sa.gov.pl/zalatw-sprawe/e-wokanda".
func SortTrials ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.