api

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package api exposes the Readproof resolution pipeline over HTTP: the wire contract every handler here implements is defined in internal/wire, and shared by internal/client/remote on the client side.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(a *app.App, opts Options) http.Handler

NewHandler builds the full Readproof HTTP API over an already-opened App.

Types

type Options

type Options struct {
	// APIKey, when non-empty, requires every request except /healthz to
	// carry a matching "Authorization: Bearer <APIKey>" header. Empty
	// (the default) leaves the API unauthenticated — fine for local
	// development, not for exposing readproofd beyond localhost.
	APIKey string
}

Options configures the HTTP API.

Jump to

Keyboard shortcuts

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