Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pathless ¶
Pathless is the top-level application, composed of its three layers:
- zero: compiles the HTML shell, assets, and templates
- fx: encodes content into the wire format and manages routes
- one: serves the HTML shell on :1000 and the wire gateway on :1001
func NewPathless ¶
NewPathless constructs a Pathless application.
Development — call with no arguments:
p := pathless.NewPathless()
Ports 1000 and 1001 are used on localhost. CORS is open (*).
Production — call with origin and circuit:
p := pathless.NewPathless("timefactory.io", "api.timefactory.io")
The HTML shell is served from origin; the wire gateway is served from circuit. CORS on the gateway is restricted to origin. HTTPS is assumed.
Click to show internal directories.
Click to hide internal directories.
