James Tombleson
ff4075383a
* added a route to delete subscriptions based on the ID given * added a new route to find a record based on the name and source * added a route to query Discord Web Hooks by Server and Channel names * tested the endpoints and they seem good to test more * updated some routes for subscriptions and formatted files * removed debug file * fixing some panic calls * swag
23 lines
589 B
Go
23 lines
589 B
Go
package interfaces
|
|
|
|
import (
|
|
"github.com/go-rod/rod"
|
|
"github.com/mmcdole/gofeed"
|
|
)
|
|
|
|
type Sources interface {
|
|
CheckSource() error
|
|
PullFeed() (*gofeed.Feed, error)
|
|
|
|
GetBrowser() *rod.Browser
|
|
GetPage(parser *rod.Browser, url string) *rod.Page
|
|
|
|
ExtractThumbnail(page *rod.Page) (string, error)
|
|
ExtractPubDate(page *rod.Page) (string, error)
|
|
ExtractDescription(page *rod.Page) (string, error)
|
|
ExtractAuthor(page *rod.Page) (string, error)
|
|
ExtractAuthorImage(page *rod.Page) (string, error)
|
|
ExtractTags(page *rod.Page) (string, error)
|
|
ExtractTitle(page *rod.Page) (string, error)
|
|
}
|