Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleScanner ¶
type GoogleScanner struct {
// contains filtered or unexported fields
}
GoogleScanner implements INewsScanner using google APIs in the backend
func NewGoogleScanner ¶
func NewGoogleScanner() *GoogleScanner
NewGoogleScanner returns a new GoogleScanner
func (*GoogleScanner) IsFake ¶
func (g *GoogleScanner) IsFake(news string) (isFake bool, err error)
IsFake tells whether the supplied news is fake
func (*GoogleScanner) SetApiKey ¶
func (g *GoogleScanner) SetApiKey(key string)
SetApiKey sets key to be used to access the APIs
func (*GoogleScanner) SetMaxAgeDays ¶
func (g *GoogleScanner) SetMaxAgeDays(maxAgeDays int)
SetMaxAgeDays sets the maximum age(in days) for the returned search resutls
Click to show internal directories.
Click to hide internal directories.