hosting

package
v0.53.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package hosting reads the reference list of shared platforms that host their users' pages under a path of their own domain, shipped with the binary (platforms.csv, documented in docs/sources.md).

Index

Constants

This section is empty.

Variables

View Source
var ErrFormat = errors.New("invalid hosting platforms file")

ErrFormat means a reference list departs from its format. The error locates the line.

Functions

func Load

func Load() (domain.Platforms, error)

Load reads the reference list shipped with the binary.

func Parse

func Parse(r io.Reader) (domain.Platforms, error)

Parse reads a reference list: a CSV file with header, one platform per row, its registrable domain and an HTTPS page of a user on it, the proof that it hosts pages under a path. A malformed file or proof is rejected with ErrFormat, a malformed domain with domain.ErrInvalidDomain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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