Documentation ¶
Index ¶
- Constants
- type Company
- type Repository
- func (r *Repository) CompaniesByQuery(location string, pageID, companiesPerPage int) ([]Company, int, error)
- func (r *Repository) CompanyBySlug(slug string) (*Company, error)
- func (r *Repository) CompanyExists(company string) (bool, error)
- func (r *Repository) DeleteStaleImages(logoID string) error
- func (r *Repository) FeaturedCompaniesPostAJob() ([]Company, error)
- func (r *Repository) GetCompanySlugs() ([]string, error)
- func (r *Repository) InferCompaniesFromJobs(since time.Time) ([]Company, error)
- func (r *Repository) SaveCompany(c Company) error
- func (r *Repository) TrackCompanyView(company *Company) error
Constants ¶
View Source
const (
SearchTypeCompany = "company"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *sql.DB) *Repository
func (*Repository) CompaniesByQuery ¶
func (*Repository) CompanyBySlug ¶
func (r *Repository) CompanyBySlug(slug string) (*Company, error)
func (*Repository) CompanyExists ¶
func (r *Repository) CompanyExists(company string) (bool, error)
func (*Repository) DeleteStaleImages ¶
func (r *Repository) DeleteStaleImages(logoID string) error
func (*Repository) FeaturedCompaniesPostAJob ¶
func (r *Repository) FeaturedCompaniesPostAJob() ([]Company, error)
func (*Repository) GetCompanySlugs ¶
func (r *Repository) GetCompanySlugs() ([]string, error)
func (*Repository) InferCompaniesFromJobs ¶
func (r *Repository) InferCompaniesFromJobs(since time.Time) ([]Company, error)
smart group by to map lower/upper case to same map entry with many entries and pickup the upper case one smart group by to find typos
func (*Repository) SaveCompany ¶
func (r *Repository) SaveCompany(c Company) error
func (*Repository) TrackCompanyView ¶
func (r *Repository) TrackCompanyView(company *Company) error
Click to show internal directories.
Click to hide internal directories.