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 {
|
2021-05-11 18:55:07 +00:00
|
|
|
Name string `json:name`
|
|
|
|
Tagline string `json:tagline`
|
|
|
|
Placeholder string `json:placeholder`
|
|
|
|
URL string `json:url`
|
|
|
|
Port int `json:port`
|
2022-03-29 12:36:48 +00:00
|
|
|
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`
|
|
|
|
}
|