jobs

package
v0.0.0-...-5bed4b0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Company  SupportedCompany `validate:"required"`
	Title    string           `validate:"required"`
	Season   JobSeason        `validate:"required"`
	Location string           `validate:"required"` // custom: if not available, "N/A"
	IsRemote bool             `validate:"required"`
	Link     string           `validate:"required"` // custom: if not available, "N/A"
}

Universal information to scrape for a new "job"

func GetUniqueJobs

func GetUniqueJobs(jobsToFilter []*Job) []*Job

func (*Job) Validate

func (j *Job) Validate() error

Validates a created job.

type JobSeason

type JobSeason string

Seasons for internships I.e. SWE Intern for Winter 2023 Sometimes can be for both, so then should be N/A.

const (
	Summer       JobSeason = "Summer"
	Winter       JobSeason = "Winter"
	NotAvailable JobSeason = "N/A"
)

func (JobSeason) IsValid

func (s JobSeason) IsValid() bool

Checks if a job season is valid

type SupportedCompany

type SupportedCompany string

func (SupportedCompany) IsValid

func (s SupportedCompany) IsValid() bool

Checks if a company is a supported company (type sensitive)

Jump to

Keyboard shortcuts

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