dou

package
v0.0.0-...-f501649 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompanyPrioritySortList

func NewCompanyPrioritySortList(list []FullCompany, aliasPriority map[string]uint32) sort.Interface

func NewVacancySalaryExistsSortList

func NewVacancySalaryExistsSortList(data []PaginationVacancy) sort.Interface

Types

type AnalyzeStats

type AnalyzeStats struct {
	TotalCount  int
	NewestCount int
	ErrorCount  int
}

type Company

type Company struct {
	Alias         string
	Name          string
	SiteUrl       string
	EmployeeCount string
	Offices       []Office
	PhotoExists   bool
	Updated       uint32
	Actual        bool
}

type CompanyPrioritySortList

type CompanyPrioritySortList struct {
	// contains filtered or unexported fields
}

func (*CompanyPrioritySortList) Len

func (l *CompanyPrioritySortList) Len() int

func (*CompanyPrioritySortList) Less

func (l *CompanyPrioritySortList) Less(i, j int) bool

func (*CompanyPrioritySortList) Swap

func (l *CompanyPrioritySortList) Swap(i, j int)

type Credentials

type Credentials struct {
	UserAgent               string
	CookieCSFRToken         string
	BodyCSFRMiddlewareToken string
}

func (Credentials) IsEmpty

func (c Credentials) IsEmpty() bool

type FullCompany

type FullCompany struct {
	Alias          string
	Name           string
	SiteURL        string
	Offices        []FullOffice
	Vacancies      []FullVacancy
	ReviewCount    int
	EmployeeCount  string
	CompanyType    string
	InTop50Largest bool
	PhotoExists    bool
}

type FullOffice

type FullOffice struct {
	City     models.City
	Address  string
	Location gmap.Location
}

type FullVacancy

type FullVacancy struct {
	Id           uint64
	Title        string
	Cities       []models.City
	ExistsOffice bool
	Salary       string
	Published    string
	Remote       bool
}

type Office

type Office struct {
	City    string
	Address string
}

type PaginationResponse

type PaginationResponse struct {
	HTML string `json:"html"`
	Last bool   `json:"last"`
	Num  int    `json:"num"`
}

func (PaginationResponse) MarshalEasyJSON

func (v PaginationResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PaginationResponse) MarshalJSON

func (v PaginationResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PaginationResponse) UnmarshalEasyJSON

func (v *PaginationResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PaginationResponse) UnmarshalJSON

func (v *PaginationResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaginationReview

type PaginationReview struct {
	Url          string
	CompanyAlias string
}

type PaginationVacancy

type PaginationVacancy struct {
	Url      string
	Title    string
	Salary   string
	Cities   []string
	Imported uint32
	Remote   bool
	Hot      bool
}

type ScrapStats

type ScrapStats struct {
	RequestCount int
	NewestCount  int
	ErrorCount   int
}

func (*ScrapStats) Merge

func (sum *ScrapStats) Merge(value ScrapStats)

func (*ScrapStats) MergeAnalyze

func (sum *ScrapStats) MergeAnalyze(value AnalyzeStats)

type SkipCompany

type SkipCompany struct {
	Alias        string
	Name         string
	VacancyCount int
	CityCount    int
	OfficeCount  int
}

type SkipCompanySortList

type SkipCompanySortList []SkipCompany

func (SkipCompanySortList) Len

func (l SkipCompanySortList) Len() int

func (SkipCompanySortList) Less

func (l SkipCompanySortList) Less(i, j int) bool

func (SkipCompanySortList) Swap

func (l SkipCompanySortList) Swap(i, j int)

type VacancySalaryExistsSortList

type VacancySalaryExistsSortList []PaginationVacancy

func (VacancySalaryExistsSortList) Len

func (VacancySalaryExistsSortList) Less

func (l VacancySalaryExistsSortList) Less(i, j int) bool

func (VacancySalaryExistsSortList) Swap

func (v VacancySalaryExistsSortList) Swap(i, j int)

Jump to

Keyboard shortcuts

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