Documentation
¶
Overview ¶
Package httpapi is a stateless HTTP surface over pose + search (with an optional extract passthrough). Handler returns an http.Handler a Go app can mount under its own mux; cmd/poserd is the ready-to-run binary. No state is retained across requests — the caller supplies candidates per request, so one handler serves many independent corpora.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Scorer used for /score and /rank; nil uses pose.DefaultScorer().
Scorer *pose.Scorer
// PoserURL enables the extraction passthrough routes (/extract,
// /search-image) against a poser-extractor instance. Empty disables them.
PoserURL string
}
Config configures a Handler.
Click to show internal directories.
Click to hide internal directories.