Documentation
¶
Overview ¶
Package publicorigin owns OAC_PUBLIC_URL's one rule, shared by Core and the installer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalid = errors.New("invalid public origin")
ErrInvalid reports a value that is not a canonical public origin.
Functions ¶
This section is empty.
Types ¶
type Origin ¶
type Origin struct {
// contains filtered or unexported fields
}
Origin is OAC_PUBLIC_URL, the one origin applications, nodes, sandboxes and self-hosted executors use. Every Core address they are given is derived from it; none is parsed back into an origin.
func New ¶
New accepts a canonical public origin, never a path or credential. It may be http or https: a reverse proxy in front of Web terminates TLS when the installation uses it.
func (Origin) DaemonWebSocket ¶
DaemonWebSocket is the daemon transport: ws on an http origin, wss on https.
func (Origin) InstallerBase ¶
InstallerBase is the prefix of the versioned native installer downloads.
func (Origin) RuntimeAPI ¶
RuntimeAPI is the base URL sandboxes and nodes call.