lieu/types/types.go

44 wiersze
1012 B
Go
Czysty Zwykły widok Historia

2021-02-03 08:12:30 +00:00
package types
type SearchFragment struct {
Word string
URL string
Score int
}
type PageData struct {
URL string
Title string
About string
Lang string
}
type Config struct {
General struct {
Name string `json:name`
Tagline string `json:tagline`
Placeholder string `json:placeholder`
URL string `json:url`
Port int `json:port`
Proxy string `json:proxy`
2021-02-03 08:12:30 +00:00
} `json:general`
2022-02-20 14:36:07 +00:00
Theme struct {
Foreground string `json:"foreground"`
Background string `json:"background"`
Links string `json:"links"`
} `json:"theme"`
2021-02-03 08:12:30 +00:00
Data struct {
Source string `json:source`
Database string `json:database`
Heuristics string `json:heuristics`
Wordlist string `json:wordlist`
} `json:data`
Crawler struct {
Webring string `json:webring`
BannedDomains string `json:bannedDomains`
BannedSuffixes string `json:bannedSuffixes`
BoringWords string `json:boringWords`
BoringDomains string `json:boringDomains`
} `json:crawler`
}