mesh

package
v0.0.0-...-0042474 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartNet

func StartNet(context context.Context, config NetworkConfiguration)

Types

type DiscoConfiguration

type DiscoConfiguration struct {
	Enabled    bool
	Rendezvous string
}

exported functions are shared here

type IdentityConfiguration

type IdentityConfiguration struct {
	PrivateKey []byte
}

type ListenConfiguration

type ListenConfiguration struct {
	Port       uint16
	Address    string
	InetFamily string
}

type MeshConfiguration

type MeshConfiguration struct {
	EnableRelay  bool
	Insecure     bool
	PreSharedKey string
}

type NetworkConfiguration

type NetworkConfiguration struct {
	DiscoConfig    DiscoConfiguration
	ListenConfig   ListenConfiguration
	IdentityConfig IdentityConfiguration
	MeshConfig     MeshConfiguration
}

Jump to

Keyboard shortcuts

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