answerhub

package
v3.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 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

func Register added in v1.5.2

func Register(config map[string]interface{}, f func(interface{}) error)

Register registers the provider

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, args map[string]interface{}) ([]map[string]interface{}, error)

Search makes a search

type SRLAuthor added in v1.8.0

type SRLAuthor struct {
	Username string `json:"username"`
	Realname string `json:"realname"`
}

SRLAuthor represents the structure of the search result list author field

type SRList added in v1.8.0

type SRList struct {
	ID           int        `json:"id"`
	Title        string     `json:"title"`
	Body         string     `json:"body"`
	Author       *SRLAuthor `json:"author"`
	CreationDate int64      `json:"creationDate"`
}

SRList represents the structure of the search result list

type SearchResult

type SearchResult struct {
	List []*SRList `json:"list"`
}

SearchResult represents the structure of the search result

Jump to

Keyboard shortcuts

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