server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package server is an operator-owned loopback service harness. It never loads credentials or chooses a cost principal from a browser request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(cfg Config) (http.Handler, error)

func Serve

func Serve(ctx context.Context, address string, handler http.Handler) error

Serve starts only when deliberately called by an operator's runnable program. The caller owns ctx and its cancellation; no package initialization binds ports. The operator injects NewHandler(Config) after establishing trusted credentials.

Types

type Config

type Config struct {
	Client        *bigquery.Client
	Plan          bigquery.ReadPlan
	Execution     bigquery.Execution
	Bounds        bigquery.Bounds
	BrowserOrigin string
}

Jump to

Keyboard shortcuts

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