server

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	METADATA_PATH      = "path"
	METADATA_TIMESTAMP = "timestamp"
	METADATA_EXIF      = "exif"

	EXIF_CAMERA_MAKE  = "Make"
	EXIF_CAMERA_Model = "Model"
	EXIF_ORIENTATION  = "Orientation"
)

Variables

View Source
var (
	EmbeddingServerUnavailable = error(&photoSearchError{
		code:        "embedding_server_unavailable",
		message:     "embedding server unavailable",
		recoverable: true})
	VectorDatabaseUnavailable = error(&photoSearchError{
		code:        "vector_database_unavailable",
		message:     "vector database unavailable",
		recoverable: true})
)

Functions

func HealthHandler

func HealthHandler(w http.ResponseWriter, r *http.Request)

func NewAuthenticationMiddleware

func NewAuthenticationMiddleware(expectedAud, expectedIss string) authenticationMiddleware

func NewInternalServer

func NewInternalServer(ctx *serverContext) *http.Server

func NewPublicServer

func NewPublicServer(ctx *serverContext) *http.Server

func NewServerContext

func NewServerContext(addr, coll, embeddingsServiceBaseUrl, photosRootDir, configPath, spaRootDir string) (*serverContext, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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