httpapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

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

func Handler

func Handler(cfg Config) http.Handler

Handler builds the stateless HTTP handler for the given config.

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.

Jump to

Keyboard shortcuts

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