answerhub

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package answerhub implements AnswerHub provider

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider represents the provider

func (*Provider) Search

func (provider *Provider) Search(ctx context.Context, keyword string, page int) (search.Results, error)

Search makes a search

type SearchResult

type SearchResult struct {
	Name       string
	Sort       string
	Page       int
	PageSize   int
	PageCount  int
	ListCount  int
	TotalCount int
	Sorts      []string
	List       []*SearchResultList
}

SearchResult represent the structure of the search result

type SearchResultList

type SearchResultList struct {
	ID    int
	Type  string
	Title string
}

SearchResultList represent the structure of the search result list

Jump to

Keyboard shortcuts

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