dial

package
v0.0.0-...-4c2bf27 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package dial provides the shared raw-QUIC MOQT client dial used by the demo and interop CLIs: one TLS/QUIC configuration, moqt:// URI support with the §3.1.4 AUTHORITY / PATH Setup Options, and the MOQT handshake. Keeping it in one place stops the per-binary copies from drifting (the interop client's copy had lost the AUTHORITY/PATH options entirely).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QUIC

func QUIC(ctx context.Context, addr string, o Options) (*session.Session, error)

QUIC dials addr — a bare host:port or a moqt:// URI (§3.1.1) — and completes the MOQT client handshake. For a URI, the authority and path/query are carried in the AUTHORITY / PATH Setup Options: §10.3.1.1 says the client MUST set AUTHORITY to the URI's authority portion.

Types

type Options

type Options struct {
	// Implementation is the SETUP IMPLEMENTATION value ("name/version").
	Implementation string
	// ALPN is the NextProtos list offered; defaults to ["moqt-19"] (§3.1: the
	// "moqt-NN" ALPN is the draft-version signal — draft-19 SETUP has no
	// version field).
	ALPN []string
	// InsecureSkipVerify disables TLS certificate verification (dev/demo
	// relays with self-signed certificates).
	InsecureSkipVerify bool
	// SessionOptions are appended to the options QUIC derives itself.
	SessionOptions []session.Option
}

Options configures QUIC.

Jump to

Keyboard shortcuts

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