Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore struct{}
Datastore implements the Storage interface targeting GAE Datastore
type Gorgonzola ¶
type Gorgonzola struct {
// contains filtered or unexported fields
}
Gorgonzola is the main application structure
type JSONJob ¶
type JSONJob struct {
Position string `json:"position"`
Title string `json:"title"`
Description string `json:"description"`
URL string `json:"url"`
Type string `json:"type"`
Posted string `json:"posted"`
Location string `json:"location"`
Skills []string `json:"skills"`
SalaryRange SalaryRange `json:"salaryRange"`
Equity Equity `json:"equity"`
Perks []string `json:"perks"`
Apply string `json:"apply"`
}
JSONJob contains single job offer
type JSONJobs ¶
type JSONJobs struct {
Company string `json:"company"`
URL string `json:"url"`
RemoteFriendly bool `json:"remoteFriendly"`
Market string `json:"market"`
Size string `json:"size"`
Jobs []JSONJob `json:"jobs"`
}
JSONJobs contains the whole jobs.json struct
type Job ¶
type Job struct {
LinkKey string
Hash string
CompanyName string
CompanyURL string
CompanyRemoteFriendly bool
CompanyMarket string
CompanySize string
Position string
Title string
Description string
URL string
Type string
Posted string
Location string
Skills []string
SalaryRangeFrom int
SalaryRangeTo int
SalaryRangeCurrency string
EquityFrom float32
EquityTo float32
Perks []string
Apply string
Active bool
Created time.Time
}
Job contains single flattened job offer
type SalaryRange ¶
type SalaryRange struct {
From int `json:"from"`
To int `json:"to"`
Currency string `json:"currency"`
}
SalaryRange contains the job salary range
type Storage ¶
type Storage interface {
AddURL(r *http.Request, url string) error
GetJobs(r *http.Request, limit int) ([]Job, error)
GetJob(r *http.Request, hash string) (*Job, error)
Update(r *http.Request) error
}
Storage interface to handle data persistence
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template is the user facing template helper structure
func NewTemplate ¶
func NewTemplate(w http.ResponseWriter) *Template
NewTemplate creates new Template
Click to show internal directories.
Click to hide internal directories.