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 ¶
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.
Click to show internal directories.
Click to hide internal directories.