Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPeers = []string{
"tls://[2a03:b0c0:3:f0::51e5:9000]:7090",
}
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
Click to show internal directories.
Click to hide internal directories.