truststate

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(state TrustState) error

Save writes the trust state to disk. Creates ~/.nself/ if needed.

Types

type TrustState

type TrustState struct {
	TrustedDomain string `json:"trusted_domain"`
}

TrustState records the last BASE_DOMAIN for which trust was configured.

func Load

func Load() (TrustState, error)

Load reads the trust state from disk. Returns zero-value TrustState if not found.

Jump to

Keyboard shortcuts

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