signedin

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package signedin is the page a browser sign-in ends on, on this computer's callback (the organization's, spec_053_enterprise EN-12, and an MCP server's): a card on Blitz's glass saying how it went, with Open Blitz when the desktop app asked for it, in the organization's branding when it has one (EN-50).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close added in v0.9.1

func Close(srv *http.Server)

Close stops the sign-in's local server once the page it's writing has gone out (at most closeWait), so the browser never gets half a page: the sign-in carries on as soon as the page's handler has the code, before the page is sent.

func Write

func Write(w http.ResponseWriter, status int, p Page)

Write writes p to w as the answer, with status.

Types

type Brand

type Brand struct {

Brand is an organization's look on the page: its name, its logo for each theme (data URLs of pictures), and its accent for each theme ("#rrggbb"), each left out when it isn't one or wouldn't read.

type Page

type Page struct {
	// Title is the card's heading; Message the line below it.
	Title, Message string
	// Failed shows the sign-in didn't go through.
	Failed bool
	// Open adds Open Blitz, a blitz://show link that brings the desktop
	// app forward: for a sign-in the app started.
	Open bool
	// Brand is the organization's look; nil for Blitz's own.
	Brand *Brand
}

Page is what the card says.

Jump to

Keyboard shortcuts

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