caching for "files" and images + moved search result types
This commit is contained in:
parent
5a66f61a4c
commit
7668ee5eca
7 changed files with 253 additions and 124 deletions
|
@ -10,15 +10,6 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
type ForumSearchResult struct {
|
||||
URL string `json:"url"`
|
||||
Header string `json:"header"`
|
||||
Description string `json:"description"`
|
||||
PublishedDate time.Time `json:"publishedDate"`
|
||||
ImgSrc string `json:"imgSrc,omitempty"`
|
||||
ThumbnailSrc string `json:"thumbnailSrc,omitempty"`
|
||||
}
|
||||
|
||||
func PerformRedditSearch(query string, safe string, page int) ([]ForumSearchResult, error) {
|
||||
const (
|
||||
pageSize = 25
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue