adminqr

package
v0.2.0-dev.11 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 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 adminqr makes the QR codes the admin panel draws: the server encodes, the page only draws the modules it is told (web/src/components/qr-code.tsx), as the person's page does (internal/panel/subs/page_qr.go).

Index

Constants

View Source
const MaxText = 4096

MaxText is the longest text EncodeQr takes, in bytes. A code holds 1663 at the level used here, so the rest of the limit is only there to refuse a body that is not a text for a QR code at all.

Variables

This section is empty.

Functions

func Encode

func Encode(text string) *adminv1.QrCode

Encode draws text at level Q, the one a logo in the middle needs, with the window the board gives the logo (cut down where the code cannot spare the error correction). nil for "" and for a text too long for any QR code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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