bootstrap

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 5 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

Index

Constants

View Source
const Size = 512

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	ID            [16]byte
	Code          [32]byte
	SetupPassword [16]byte
	Endpoint      string
}

Record is the device-specific part of a factory package. No Wi-Fi network, manager private key or durable device credential belongs here.

func Parse

func Parse(raw []byte) (Record, error)

func (Record) MarshalBinary

func (b Record) MarshalBinary() ([]byte, error)

func (Record) WiFiQR

func (b Record) WiFiQR() string

WiFiQR encodes only the credentials of the receiver's temporary local AP. Both varying fields are hex digits and need no Wi-Fi QR escaping.

Jump to

Keyboard shortcuts

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