Documentation
¶
Overview ¶
Package server serves the 2dph brain over HTTP.
Async by design: every request runs on its own goroutine, and CPU-heavy searches are serialized through a bounded worker pool (a counting semaphore) so N requests can't spawn N Python interpreters at once.
Used by bin/serve.go which is a self-executing shebang script:
///usr/bin/env go run "$0" "$@"; exit
package main
import "github.com/eSlider/2dph/bin/server"
func main() { server.Run() }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.