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.
Click to show internal directories.
Click to hide internal directories.