Help us shape the future of Go! Take the 2026 Go Developer Survey

embedwire

package
v1.152.6 Latest Latest
Warning

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

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

Documentation

Overview

Package embedwire assembles the embed hosts list (#2069) from the platform: the administrator's stored section, the configuration file's portal.embeds.hosts, and the admin routes that edit it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(mux *http.ServeMux, r *embedhosts.Resolver, db *sql.DB, wrap func(http.Handler) http.Handler, author func(*http.Request) string)

Mount registers the admin routes; a nil wrap or a resolver without a store mounts none.

func New

func New(db *sql.DB, cfg embedhosts.Config) *embedhosts.Resolver

New builds the resolver. Without a database it serves the configuration file's list and stores nothing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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