company

package
v0.0.0-...-80e8cda Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SearchTypeCompany = "company"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Company

type Company struct {
	ID                              string
	Name                            string
	URL                             string
	Locations                       string
	IconImageID                     string
	Description                     *string
	LastJobCreatedAt                time.Time
	TotalJobCount                   int
	ActiveJobCount                  int
	Featured                        bool
	Slug                            string
	Twitter                         *string
	Github                          *string
	Linkedin                        *string
	CompanyPageEligibilityExpiredAt time.Time
}

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(db *sql.DB) *Repository

func (*Repository) CompaniesByQuery

func (r *Repository) CompaniesByQuery(location string, pageID, companiesPerPage int) ([]Company, int, error)

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

Jump to

Keyboard shortcuts

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