model

package
v0.0.0-...-aa46052 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyword

type Keyword struct {
	Name               string        `json:"name"`
	AdWordsCount       int           `json:"ad_words_count"`
	LinksCount         int           `json:"links_count"`
	SearchResultsCount string        `json:"search_results_count"`
	HtmlCache          string        `json:"html_cache"`
	Status             KeywordStatus `json:"status"`
	LastCrawledAt      *time.Time    `json:"last_crawled_at"`
}

type KeywordStatus

type KeywordStatus int
const (
	KeywordNeedCrawl KeywordStatus = iota
	KeywordCrawled
)

type User

type User struct {
	ID     string `json:"id" gorm:"default:null"`
	Name   string `json:"name"`
	Email  string `json:"email"`
	Avatar string `json:"avatar"`
}

User data model

func GetUserFromPerson

func GetUserFromPerson(person *people.Person) (*User, error)

type UserKeyword

type UserKeyword struct {
	UserID   string `json:"user_id"`
	Keyword  string `json:"keyword"`
	FileName string `json:"file_name"`
}

Jump to

Keyboard shortcuts

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