Documentation
¶
Overview ¶
Package cliserver resolves factory API server base URIs and builds request URLs.
Index ¶
Constants ¶
const (
// DefaultBaseURI is the factory API base when no --server value is provided.
DefaultBaseURI = "http://localhost:7437"
)
Variables ¶
This section is empty.
Functions ¶
func RequestURL ¶
RequestURL resolves server into a base URI and joins path into a full request URL.
Types ¶
type Base ¶
Base is a validated http or https factory API server base URI.
func ResolveBase ¶
ResolveBase parses raw into a validated server base URI. An empty or whitespace-only raw value defaults to DefaultBaseURI.
type LocalBindTarget ¶
LocalBindTarget is the host and TCP port derived from a local --server URI for you run.
func LocalBindTargetFromBase ¶
func LocalBindTargetFromBase(base Base) (LocalBindTarget, error)
LocalBindTargetFromBase derives a local bind host and TCP port from a validated base URI.
func LocalBindTargetFromServer ¶
func LocalBindTargetFromServer(server string) (LocalBindTarget, error)
LocalBindTargetFromServer resolves server into a validated local bind host and TCP port. The server host must be a local loopback name (localhost, 127.0.0.1, or ::1).