dolstats

package module
v0.0.0-...-fd6297c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2016 License: MIT Imports: 5 Imported by: 1

README

dolstats

Build Status GoDoc

Package dolstats is basic API to dolstats.com website - "database" of all processed PERM applications by Department of Labour. It doesn't require any registration.

Example:

	f := dolstats.Filter{
		Number: caseNumber,
	}
	cases, err := dolstats.GetCases(f)
	if err != nil {
		panic(err)
	}
	if len(cases) == 0 {
		fmt.Println("Sorry, your PERM is still not approved :(")
	}

Documentation

Overview

Package dolstats is basic API to dolstats.com website - "database" of all processed PERM applications by Department of Labour. It doesn't require any registration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Case

type Case struct {
	Number       string `json:"cn"`
	PostedDate   string `json:"cCD"`
	ApprovalDate string `json:"pD"`
	Job          string `json:"pT"`
	Employer     string `json:"fN"`
	State        string `json:"s"`
	Status       string `json:"cR"`
}

Case represents PERM case which was processed by Department of Labour.

func GetCases

func GetCases(f Filter) ([]Case, error)

GetCases returns all processed cases which satisfy f.

type Filter

type Filter struct {
	From     time.Time
	To       time.Time
	Number   string
	Employer string
	State    string
	Status   string
}

Filter specifies search parameters.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL