service

package
v0.0.0-...-a6a173c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AskBaseURL = "https://www.ask.com/web?q="
View Source
const BingBaseURL = "https://www.bing.com/search?q="
View Source
const GoogleBaseURL = "https://www.google.com/search?q="
View Source
const YahooBaseURL = "https://search.yahoo.com/search?p="

Variables

This section is empty.

Functions

This section is empty.

Types

type AskSpider

type AskSpider struct {
	// contains filtered or unexported fields
}

func NewAskSpider

func NewAskSpider() *AskSpider

func (*AskSpider) GetSearchEngineType

func (a *AskSpider) GetSearchEngineType() domain.SearchEngineType

func (*AskSpider) Query

func (a *AskSpider) Query(keyword domain.Keyword) (*domain.SearchEngine, error)

type BingSpider

type BingSpider struct {
	// contains filtered or unexported fields
}

func NewBingSpider

func NewBingSpider() *BingSpider

func (*BingSpider) GetSearchEngineType

func (b *BingSpider) GetSearchEngineType() domain.SearchEngineType

func (*BingSpider) Query

func (b *BingSpider) Query(keyword domain.Keyword) (*domain.SearchEngine, error)

type GoogleSpider

type GoogleSpider struct {
	// contains filtered or unexported fields
}

func NewGoogleSpider

func NewGoogleSpider() *GoogleSpider

func (*GoogleSpider) GetSearchEngineType

func (g *GoogleSpider) GetSearchEngineType() domain.SearchEngineType

func (*GoogleSpider) Query

func (g *GoogleSpider) Query(keyword domain.Keyword) (*domain.SearchEngine, error)

type YahooSpider

type YahooSpider struct {
	// contains filtered or unexported fields
}

func NewYahooSpider

func NewYahooSpider() *YahooSpider

func (*YahooSpider) GetSearchEngineType

func (y *YahooSpider) GetSearchEngineType() domain.SearchEngineType

func (*YahooSpider) Query

func (y *YahooSpider) Query(keyword domain.Keyword) (*domain.SearchEngine, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL