serving

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package serving tells the batteries' Starters whether the App serves HTTP. A worker process (http.enabled false) and an App under choktest serve none, and a battery's own listener, such as telemetry's metrics listener, stays closed with them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Off

func Off(ctx context.Context) bool

Off reports whether ctx says the App serves no HTTP. A context the App did not mark, as when a Starter runs on its own, does not say so.

func With

func With(ctx context.Context, on bool) context.Context

With marks ctx with whether the App's HTTP server is on; the App marks the context its Starters run in.

Types

This section is empty.

Jump to

Keyboard shortcuts

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