Documentation
¶
Index ¶
- func Logger(l log.StandardLogger) func(cfg *Config) error
- func NetLinkBootstrap(b bool) func(cfg *Config) error
- func Start(ctx context.Context, ledger *blockchain.Ledger, n *node.Node, p ...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 Start ¶
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
}
Click to show internal directories.
Click to hide internal directories.