competitor_model

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City string
const (
	SaoPaulo      City = "Sao Paulo"
	RioDeJaneiro  City = "Rio de Janeiro"
	Brasilia      City = "Brasilia"
	Salvador      City = "Salvador"
	Fortaleza     City = "Fortaleza"
	BeloHorizonte City = "Belo Horizonte"
	Manaus        City = "Manaus"
	Curitiba      City = "Curitiba"
	Recife        City = "Recife"
	PortoAlegre   City = "Porto Alegre"
)

type CompetitorBaseModel

type CompetitorBaseModel struct {
	ID      string
	Link    string
	City    City
	Term    string
	Device  Device
	BrandID string
}

type CompetitorCityWithLinksBaseModel

type CompetitorCityWithLinksBaseModel struct {
	Name  string
	Links []string
}

type CompetitorTermBaseModel

type CompetitorTermBaseModel struct {
	Term   string
	Cities []*CompetitorCityWithLinksBaseModel
}

type CreateCompetitorDBInputModel

type CreateCompetitorDBInputModel struct {
	Link        string
	City        City
	Term        string
	Device      Device
	BrandID     string
	ProcessedAt time.Time
}

type CreateCompetitorInputModel

type CreateCompetitorInputModel struct {
	City    City
	Term    string
	Device  Device
	BrandID string
}

type Device

type Device string
const (
	Tablet  Device = "Tablet"
	Mobile  Device = "Mobile"
	Desktop Device = "Desktop"
)

type FindTermCompetitorHttpInputModel

type FindTermCompetitorHttpInputModel struct {
	Term   string
	City   City
	Device Device
}

type SearchTermDataModel

type SearchTermDataModel struct {
	City             City
	Link             string
	Term             string
	Device           Device
	ProcessedAt      time.Time
	BrowserSearchUrl string
}

Jump to

Keyboard shortcuts

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