source

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package source defines public job source configuration.

Index

Constants

View Source
const (
	TypeManual     = "manual"
	TypeRSS        = "rss"
	TypeGreenhouse = "greenhouse"
	TypeLever      = "lever"
	TypeAshby      = "ashby"

	// Scraper-backed sources. These types violate the host's Terms of
	// Service. They rely on headless Chrome (via chromedp) and DOM
	// selectors that drift over time. Expect breakage every few months
	// and accept that heavy use can get your IP / account flagged.
	TypeLinkedIn  = "linkedin"
	TypeIndeed    = "indeed"
	TypeGlassdoor = "glassdoor"
)

Variables

This section is empty.

Functions

func IsScraper

func IsScraper(t string) bool

IsScraper reports whether t is a scraper-backed source. The importer routes these through internal/sources/scraper (headless browser) rather than the lightweight HTTP+JSON path used by the official-API types.

func SupportedType

func SupportedType(t string) bool

Types

type Source

type Source struct {
	ID            string    `json:"id"`
	Type          string    `json:"type"`
	Name          string    `json:"name"`
	URL           string    `json:"url,omitempty"`
	CreatedAt     time.Time `json:"created_at"`
	LastCheckedAt time.Time `json:"last_checked_at,omitempty"`
	Enabled       bool      `json:"enabled"`
}

Source is one configured public job listing source.

Jump to

Keyboard shortcuts

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