Documentation ¶
Index ¶
Constants ¶
View Source
const WhoIsHiringString string = "Who is hiring?"
Variables ¶
This section is empty.
Functions ¶
func FetchAsync ¶
func FetchAsync(fo FetchOptions)
Types ¶
type DisplayJob ¶
type DisplayJob struct { *db.Job DisplayCompany string // what's displayed in the list, e.g. "* [7] McDonald's" DisplayText string // job text formatted for terminal Hidden bool }
DisplayJob is a db.Job formatted for display
type DisplayStory ¶
type FetchOptions ¶
type FetchStatusUpdate ¶
type FetchStatusUpdate struct { UpdateType UpdateType Message string Value int // either new job score or number of jobs fetched on completion Error error }
type UpdateType ¶
type UpdateType = int
const ( UpdateTypeGeneric UpdateType = iota UpdateTypeNewStory // value is new story id UpdateTypeNonFatalErr UpdateTypeFatal UpdateTypeBadComment UpdateTypeJobFetched UpdateTypeDone // value is newJobs + updatedJobs )
Click to show internal directories.
Click to hide internal directories.