Documentation ¶
Overview ¶
Package checkr provides a client for the checkr API.
Index ¶
- Variables
- func SetAPIKey(key string)
- type Candidate
- type Candidates
- type Invitation
- type Invitations
- type Pagination
- type Paginator
- func (p *Paginator) Clear()
- func (p Paginator) First() bool
- func (p Paginator) Last() bool
- func (p *Paginator) Next() error
- func (p Paginator) Page() int
- func (p Paginator) PerPage() int
- func (p *Paginator) Previous() error
- func (p *Paginator) SetPage(page int)
- func (p *Paginator) SetPerPage(perPage int)
- func (p Paginator) Total() int
- type Report
- type Subscription
Constants ¶
This section is empty.
Variables ¶
var ( // URL is the url for the specific checkr API version chosen URL *url.URL )
Functions ¶
Types ¶
type Candidate ¶
type Candidate struct { ID string `json:"id,omitempty"` Object string `json:"object,omitempty"` URI string `json:"uri,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` FirstName string `json:"first_name,omitempty"` MiddleName string `json:"middle_name,omitempty"` NoMiddleName bool `json:"no_middle_name,omitempty"` LastName string `json:"last_name,omitempty"` Email string `json:"email,omitempty"` Phone string `json:"phone,omitempty"` Zipcode string `json:"zipcode,omitempty"` DOB string `json:"dob,omitempty"` SSN string `json:"ssn,omitempty"` DriverLicenseNumber string `json:"driver_license_number,omitempty"` DriverLicenseState string `json:"driver_license_state,omitempty"` PreviousDriverLicenseNumber string `json:"previous_driver_license_number,omitempty"` PreviousDriverLicenseState string `json:"previous_driver_license_state,omitempty"` CopyRequested bool `json:"copy_requested,omitempty"` CustomID string `json:"custom_id,omitempty"` ReportIDs []string `json:"report_ids,omitempty"` GeoIDs []string `json:"geo_ids,omitempty"` }
Candidate represents a candidate to be screened.
type Candidates ¶
Candidates represents a listing of candidates.
func (*Candidates) Index ¶
func (c *Candidates) Index() error
Index shows the index endpoint list of Candidates.
type Invitation ¶
type Invitation struct { ID string `json:"id,omitempty"` Status string `json:"status,omitempty"` URI string `json:"uri,omitempty"` InvitationURL string `json:"invitation_url,omitempty"` CompletedAt *time.Time `json:"completed_at,omitempty"` DeletedAt *time.Time `json:"deleted_at,omitempty"` ExpiresAt *time.Time `json:"expires_at,omitempty"` Package string `json:"package,omitempty"` Object string `json:"object,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` CandidateID string `json:"candidate_id,omitempty"` }
Invitation represents a background check invitation. The candidate will receive an email to submit their information.
func (Invitation) Create ¶
func (i Invitation) Create() error
Create sends an HTTP request to create a new Invitation. The Invitation attributes Package and CandidateID are required.
type Invitations ¶
type Invitations struct { Paginator Data []Invitation `json:"data"` }
Invitations represents a listing of invitations.
func (*Invitations) Index ¶
func (i *Invitations) Index() error
Index shows the index list of Invitations.
type Pagination ¶
type Pagination interface { First() bool Last() bool Next() error Previous() error SetPage(page int) SetPerPage(perPage int) Page() int PerPage() int Total() int Clear() }
Pagination describes pagination
type Paginator ¶
type Paginator struct { Object string `json:"object,omitempty"` NextHref string `json:"next_href,omitempty"` PreviousHref string `json:"previous_href,omitempty"` Count int `json:"count,omitempty"` // contains filtered or unexported fields }
Paginator represents a list of paginated results.
func (*Paginator) Clear ¶
func (p *Paginator) Clear()
Clear clears the page and per page values. This is helpful for setting default values.
func (*Paginator) SetPerPage ¶
SetPerPage sets the number of results to show per page.
type Report ¶
type Report struct { ID string `json:"id,omitempty"` Object string `json:"object,omitempty"` URI string `json:"uri,omitempty"` Status string `json:"status,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` CompletedAt *time.Time `json:"completed_at,omitempty"` TurnaroundTime int `json:"turnaround_time,omitempty"` DueTime *time.Time `json:"due_time,omitempty"` Adjudication string `json:"adjudication,omitempty"` Package string `json:"package,omitempty"` CandidateID string `json:"candidate_id,omitempty"` SsnTraceID string `json:"ssn_trace_id,omitempty"` SexOffenderSearchID string `json:"sex_offender_search_id,omitempty"` NationalCriminalSearchID string `json:"national_criminal_search_id,omitempty"` CountyCriminalSearchIDs []string `json:"county_criminal_search_ids,omitempty"` MotorVehicleReportID string `json:"motor_vehicle_report_id,omitempty"` StateCriminalSearchIDs []string `json:"state_criminal_search_ids,omitempty"` }
Report represents a background check report. Depending on the selected package, a report can include the following screenings: SSN trace, sex offender search, national criminal search, county criminal searches and motor vehicle report.
type Subscription ¶
type Subscription struct { ID string `json:"id,omitempty"` Object string `json:"object,omitempty"` URI string `json:"uri,omitempty"` Status string `json:"status,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` CanceledAt time.Time `json:"canceled_at,omitempty"` Package string `json:"package,omitempty"` IntervalCount int `json:"interval_count,omitempty"` IntervalUnit string `json:"interval_unit,omitempty"` StartDate string `json:"start_date,omitempty"` CandidateID string `json:"candidate_id,omitempty"` }
Subscription represents a background check subscription.