mesh

package
v0.2.513 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPeers = []string{
	"tls://[200:aa2a:2032:d056:27c4:cdc3:f425:ab4d]:7090",
	"tls://[200:944:3126:96c3:52b2:b217:f466:a23f]:7092",
	"tls://[200:865c:9948:4280:8440:44fb:bbe5:e92a]:7093",
	"tls://127.0.0.1:7090",
	"tls://127.0.0.1:7092",
	"tls://127.0.0.1:7093",
}

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) HumanID added in v0.2.509

func (mr *MeshRouter) HumanID() string

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