handlers

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: MIT Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BotHook

func BotHook(calman func(service.Message, service.Service, cache.QueryCache)) func(http.ResponseWriter, *http.Request)

func HandleCalman

func HandleCalman(message service.Message, service service.Service, cache cache.QueryCache)

func HandleGoogleImage added in v1.2.8

func HandleGoogleImage(w http.ResponseWriter, r *http.Request)

Types

type Next added in v1.2.8

type Next struct {
	StartIndex int `json:"startIndex"`
}

type Queries added in v1.2.8

type Queries struct {
	NextPage []Next `json:"nextPage"`
}

type RootSearch added in v1.2.8

type RootSearch struct {
	Kind    string       `json:"kind"`
	Items   []SearchItem `json:"items"`
	Queries Queries      `json:"queries"`
}

type SearchItem added in v1.2.8

type SearchItem struct {
	Title string `json:"title"`
	Link  string `json:"link"`
	Mime  string `json:"mime"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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