suggestion

package
v0.0.0-...-f6f54f1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Query string `json:"query"`
}

func (*Request) String

func (r *Request) String() string

type SuggestionResponse

type SuggestionResponse struct {
	Results []SuggestionResult `json:"results`
}

func Suggest

func Suggest(query string, resourceType string) (*SuggestionResponse, time.Duration, error)

func (*SuggestionResponse) Stringer

func (r *SuggestionResponse) Stringer() string

type SuggestionResult

type SuggestionResult struct {
	Suggestion string `json:"suggestion"`
	ID         string `json:"id"`
}

func (*SuggestionResult) Stringer

func (r *SuggestionResult) Stringer() string

Jump to

Keyboard shortcuts

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