server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(dependencies Dependencies) http.Handler

func WithOperatorAuth

func WithOperatorAuth(next http.Handler, token string) http.Handler

WithOperatorAuth protects public business endpoints when token is configured. Health probes remain public, and trusted in-process workflows bypass HTTP auth.

Types

type Dependencies

type Dependencies struct {
	Scope  domain.ScopeRef
	Ingest *app.IngestService
	Query  *app.QueryService
	Ready  func() bool
	Waker  Waker
}

type Waker

type Waker interface {
	Wake(id domain.OperationID)
}

Jump to

Keyboard shortcuts

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