github

package
v1.5.1 Latest Latest
Warning

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

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

Documentation

Overview

Package github 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, query search.Query) (search.Query, error)

Search makes a search

type SearchResult

type SearchResult struct {
	TotalCount        int  `json:"total_count"`
	IncompleteResults bool `json:"incomplete_results"`
	Items             []*SearchResultItems
}

SearchResult represent the structure of the search result

type SearchResultItems

type SearchResultItems struct {
	Name       string                       `json:"name"`
	Path       string                       `json:"path"`
	HTMLUrl    string                       `json:"html_url"`
	Repository *SearchResultItemsRepository `json:"repository"`
}

SearchResultItems represent the structure of the search result items

type SearchResultItemsRepository

type SearchResultItemsRepository struct {
	Fullname    string `json:"full_name"`
	Description string `json:"description"`
}

SearchResultItemsRepository represent the structure of the search result items repository

Jump to

Keyboard shortcuts

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