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

web

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package web is `rig web`: the control plane in a browser, served on this machine. The page is static; everything it shows comes from the Engine API (the calls `rig serve` answers), behind a token the printed link carries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	File  string
	Token string
	// Open opens the project on an environment ("" is its default).
	Open func(file, env string) (*engine.App, error)
	// Info is merged into GET /v1/web: themes, the chosen theme, the version.
	Info map[string]any
	// contains filtered or unexported fields
}

func (*Handler) Close

func (h *Handler) Close()

func (*Handler) Engine

func (h *Handler) Engine(env string) (*engine.Local, error)

Engine is the engine for env, opened once; opening one environment never waits on another.

func (*Handler) Routes

func (h *Handler) Routes() http.Handler

Jump to

Keyboard shortcuts

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