publicorigin

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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

Overview

Package publicorigin owns OAC_PUBLIC_URL's one rule, shared by Core and the installer.

Index

Constants

This section is empty.

Variables

View Source
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

func New(value string) (Origin, error)

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) API

func (o Origin) API() string

API is the base URL of the Agents API.

func (Origin) DaemonWebSocket

func (o Origin) DaemonWebSocket() string

DaemonWebSocket is the daemon transport: ws on an http origin, wss on https.

func (Origin) InstallerBase

func (o Origin) InstallerBase() string

InstallerBase is the prefix of the versioned native installer downloads.

func (Origin) RuntimeAPI

func (o Origin) RuntimeAPI() string

RuntimeAPI is the base URL sandboxes and nodes call.

func (Origin) String

func (o Origin) String() string

String is the origin itself.

Jump to

Keyboard shortcuts

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