sitehttp

package
v1.155.0 Latest Latest
Warning

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

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

Documentation

Overview

Package sitehttp assembles the serving layer for sites and browser pages (#2517, #2518) over the platform's mux: the Host-routing gateway the listener is wrapped in, the portal route that hands a signed-in person to a page origin, the administrators' report of the hostnames the ingress needs, and the optional ACME listener.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer

type Layer struct {
	// contains filtered or unexported fields
}

Layer is the assembled serving layer; a nil one passes everything through.

func Build

func Build(mux *http.ServeMux, p *platform.Platform, adminAuth func() func(http.Handler) http.Handler) (*Layer, error)

Build assembles the layer, nil where the deployment has no sites.

func (*Layer) Start

func (l *Layer) Start(ctx context.Context) (stop func())

Start begins the handoff sweep and the ACME listener, and returns what stops them.

func (*Layer) Wrap

func (l *Layer) Wrap(next http.Handler) http.Handler

Wrap sends a served hostname to the gateway.

Jump to

Keyboard shortcuts

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