Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultPeer = "tls://[2a04:2181:c011:1::38bc:d823]: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
Click to show internal directories.
Click to hide internal directories.