server

package
v0.0.0-...-0b5b0ed Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(reader func(chan<- string))

RunServer runs an HTTP server providing the following endpoints:

GET /canonical?url=<URL>: Returns the canonical URL corresponding to url. If the image url is unknown, an empty string is returned.

POST /process?url=<URL>: Enqueues the url for processing.

GET /debug/vars: Stats (memory, amount of processed images, etc)

GET /debug/similar: Lists the 10 latest similar images found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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