handler

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ItemHandler

func ItemHandler(w http.ResponseWriter, req *http.Request)
func Search(sourceType string, params *SearchParams, r *http.Request) (map[string]interface{}, error)

func SearchSourceHandler

func SearchSourceHandler(w http.ResponseWriter, req *http.Request)

func SourcesHandler

func SourcesHandler(w http.ResponseWriter, req *http.Request)

Types

type SearchParamSet

type SearchParamSet struct {
	Key    string
	Op     string
	Values []string
}

func (*SearchParamSet) SetKey

func (p *SearchParamSet) SetKey(key string)

func (*SearchParamSet) SetOp

func (p *SearchParamSet) SetOp(op string)

func (*SearchParamSet) SetValues

func (p *SearchParamSet) SetValues(values []string)

type SearchParams

type SearchParams struct {
	Offset uint64
	Limit  uint64
	// contains filtered or unexported fields
}

func ParseSearchParams

func ParseSearchParams(params map[string][]string) (*SearchParams, error)

Jump to

Keyboard shortcuts

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