defnet

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Overview

Package defnet provides a default network implementation that uses native networking on platforms that support it, and falls back to a loopback (in-memory) network on platforms like wasm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

Network combines all major gonnect interfaces into one.

func DefaultNetwork

func DefaultNetwork(cfg *native.Config) Network

DefaultNetwork builds native.Network on compilation targets with native networking available (linux, windows, darwin, etc) and loopback network for others (wasm, etc). If cfg is nil, default one will be used. For loopback network cfg arg is ignored.

Jump to

Keyboard shortcuts

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