mesh

package
v0.2.507 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: GPL-2.0, GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPeer = "tls://[200:aa2a:2032:d056:27c4:cdc3:f425:ab4d]:7090"

Variables

This section is empty.

Functions

This section is empty.

Types

type MeshLogger

type MeshLogger interface {
	Printf(s string, i ...interface{})
	Println(i ...interface{})
	Infof(s string, i ...interface{})
	Infoln(i ...interface{})
	Warnf(s string, i ...interface{})
	Warnln(i ...interface{})
	Errorf(s string, i ...interface{})
	Errorln(i ...interface{})
	Debugf(s string, i ...interface{})
	Debugln(i ...interface{})
	Traceln(i ...interface{})
}

type MeshRouter

type MeshRouter struct {
	// contains filtered or unexported fields
}

func NewMeshRouter

func NewMeshRouter(
	ctx context.Context,
	libp2pBootstrapNodes []string,
	privKey []byte,
	l MeshLogger,
) (_ *MeshRouter, err error)

NewMesh function is responsible for configuring and starting Yggdrasil.

func (*MeshRouter) Address

func (mr *MeshRouter) Address() net.IP

func (*MeshRouter) Stop

func (mr *MeshRouter) Stop()

func (*MeshRouter) Subnet

func (mr *MeshRouter) Subnet() net.IPNet

Jump to

Keyboard shortcuts

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