gaoxiaojob

package
v0.0.0-...-a7c31ce Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOCATION *time.Location
View Source
var URL = url.URL{
	Scheme: "http",
	Host:   "www.gaoxiaojob.com",
}

Functions

func NewCommand

func NewCommand(v *viper.Viper) *cobra.Command

func Notify

func Notify(webhookURL string, jobs []*Job) error

func Run

func Run(storageFilename, webhookURL string, keywords []string) error

Types

type Job

type Job struct {
	URL   string
	Title string

	Meta map[string]string
	// 分类
	Categories []string
	// 需求学科
	Subjects []string
	// 所属省份
	Provinces []string
	// 工作地点
	Locations []string

	// 发布时间
	PublishedAt *time.Time
	// 截止日期
	ExpireAt *time.Time

	Body string
}

func FetchJobs

func FetchJobs(storageFilename string) []*Job

func FilterJobs

func FilterJobs(jobs []*Job, keywords []string) []*Job

Jump to

Keyboard shortcuts

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