Documentation
¶
Index ¶
- func Logger(l log.StandardLogger) func(cfg *Config) error
- func NetLinkBootstrap(b bool) func(cfg *Config) error
- func Register(p ...Option) ([]node.Option, error)
- func WithInterface(i *water.Interface) func(cfg *Config) error
- func WithInterfaceAddress(i string) func(cfg *Config) error
- func WithInterfaceMTU(i int) func(cfg *Config) error
- func WithInterfaceName(i string) func(cfg *Config) error
- func WithInterfaceType(d water.DeviceType) func(cfg *Config) error
- func WithLedgerAnnounceTime(t time.Duration) func(cfg *Config) error
- func WithPacketMTU(i int) func(cfg *Config) error
- func WithRouterAddress(i string) func(cfg *Config) error
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NetLinkBootstrap ¶
func Register ¶ added in v0.7.2
Start the node and the vpn. Returns an error in case of failure When starting the vpn, there is no need to start the node
func WithInterfaceAddress ¶
func WithInterfaceMTU ¶
func WithInterfaceName ¶
func WithInterfaceType ¶
func WithInterfaceType(d water.DeviceType) func(cfg *Config) error
func WithPacketMTU ¶
func WithRouterAddress ¶
Types ¶
type Config ¶
type Config struct {
Interface *water.Interface
InterfaceName string
InterfaceAddress string
RouterAddress string
InterfaceMTU int
MTU int
DeviceType water.DeviceType
LedgerAnnounceTime time.Duration
Logger log.StandardLogger
NetLinkBootstrap bool
Timeout time.Duration
Concurrency int
ChannelBufferSize int
}
type Option ¶
func WithChannelBufferSize ¶
func WithConcurrency ¶
func WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.