Documentation
¶
Overview ¶
Package config contains configuration options for the webmesh libp2p transport components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Config is the configuration for the WireGuard interface.
Config WireGuardOptions
// EndpointDetection are options for doing public endpoint
// detection for the wireguard interface.
EndpointDetection *endpoints.DetectOpts
// Logger is the logger to use for the webmesh transport.
// If nil, an empty logger will be used.
Logger *slog.Logger
}
Options are the options for the wireguard interface and endpoint detection.
type WireGuardOptions ¶
type WireGuardOptions struct {
// ListenPort is the port to listen on.
// If 0, a default port of 51820 will be used.
ListenPort int
// InterfaceName is the name of the interface to use.
// If empty, a default platform dependent name will be used.
InterfaceName string
// ForceInterfaceName forces the interface name to be used.
// If false, the interface name will be changed if it already exists.
ForceInterfaceName bool
// MTU is the MTU to use for the interface.
// If 0, a default MTU of 1420 will be used.
MTU int
}
WireGuardOptions are options for configuring the WireGuard interface on the transport.
func (*WireGuardOptions) Default ¶
func (w *WireGuardOptions) Default()
Click to show internal directories.
Click to hide internal directories.