Documentation
¶
Overview ¶
Package laneurl parses WireHop carrier URLs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalid indicates a malformed or unsupported WireHop lane URL. ErrInvalid = errors.New("invalid lane URL") )
Functions ¶
func ValidDialIP ¶
ValidDialIP reports whether address can identify one unicast carrier destination.
Types ¶
type Scheme ¶
type Scheme string
Scheme identifies one supported carrier protocol.
type URL ¶
type URL struct {
// contains filtered or unexported fields
}
URL is one validated WireHop lane URL.
func ParseDial ¶
ParseDial validates a client lane URL and applies the standard WebSocket port when omitted.
func ParseListen ¶
ParseListen validates a server lane URL and applies the standard WebSocket port when omitted.
func (URL) EscapedPath ¶
EscapedPath returns the canonical HTTP request path for a WebSocket lane.