lanespec

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 7 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 lanespec parses WireHop client lane declarations.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalid indicates a malformed or inconsistent client lane declaration.
	ErrInvalid = errors.New("invalid lane declaration")
)

Functions

This section is empty.

Types

type Spec

type Spec struct {
	// contains filtered or unexported fields
}

Spec is one immutable client lane declaration.

func Parse

func Parse(value string) (Spec, error)

Parse validates a URL shorthand or structured client lane declaration.

func (Spec) DialAddress

func (s Spec) DialAddress() string

DialAddress returns the actual host and port supplied to the network dialer.

func (Spec) ResolveIP

func (s Spec) ResolveIP() netip.Addr

ResolveIP returns the fixed resolution result, or an invalid address when normal DNS applies.

func (Spec) URL

func (s Spec) URL() laneurl.URL

URL returns the logical carrier URL.

func (Spec) Valid

func (s Spec) Valid() bool

Valid reports whether s contains a parsed client lane declaration.

Jump to

Keyboard shortcuts

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