types

package
v0.0.0-...-1d38502 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domains

type Domains struct {
	Default bool
	Domain  string `bson:"_id"`
}

type List

type List struct {
	Id    string `bson:"_id"`
	Posts []string
	Name  string
	Owner string
	Subs  []string
}

type Marsh

type Marsh struct {
	PriceStr string `selector:".price"`
	Text     string `selector:"#postingbody"`
	Title    string `selector:"#titletextonly"`
}

type Post

type Post struct {
	AttrGroup  map[string]string
	Candidate  bool
	CapPercent int
	Color      string
	Link       bool
	Make       string
	Odometer   int
	Price      int
	Subdomain  string
	Text       string
	Title      string
	Url        string `bson:"_id"`
	Year       int
	// contains filtered or unexported fields
}

func (*Post) GetAttr

func (p *Post) GetAttr(e *colly.HTMLElement, l *log.Logger)

func (*Post) GetCapPercent

func (p *Post) GetCapPercent()

func (*Post) GetColor

func (p *Post) GetColor(titleBody string)
func (p *Post) GetHasLink(titleBody string)

func (*Post) GetMake

func (p *Post) GetMake(titleBody string)

func (*Post) GetYear

func (p *Post) GetYear(titleBody string)

type Preset

type Preset struct {
	Id       string `bson:"_id"`
	Everyone bool
	Owner    string
	Subs     []string
	Query    bson.M

	Candidate  bool
	CapPercent int
	Color      string
	Discard    []string
	Link       bool
	Make       string
	Odometer   int
	Price      int
	Required   []string
	SubDomains []string
	Year       int
}

func (*Preset) MakeQuery

func (p *Preset) MakeQuery(id string, candidate, candidateUse bool, capPercent, color, discard string, link, linkUse bool, makeCar,
	odometer, price, required string, shares []string, subDomains, year string) error

type User

type User struct {
	Deleted  []string
	Domains  []string
	Username string `bson:"_id"`
	Password string
}

Jump to

Keyboard shortcuts

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