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.
Click to show internal directories.
Click to hide internal directories.