handler

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2016 License: MIT Imports: 19 Imported by: 2

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)

func YourChartCreateHandler added in v0.2.3

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

func YourChartFetchHandler added in v0.2.3

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

func YourchartAuthorize added in v0.2.3

func YourchartAuthorize(apiKey string, jobId string, upstreamJobId string, upstreamLabJobId string) error

func YourchartAuthorized added in v0.2.3

func YourchartAuthorized(apiKey string, jobId string) (string, string, error)

func YourchartEnabled added in v0.2.3

func YourchartEnabled(apiKey string) (bool, error)

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
	Sort   string
	Order  string
	// 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