server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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