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://[2a04:2181:c011:1::38bc:d823]:7090",
"tls://[2a04:2181:c011:1::38bc:d823]:7092",
"tls://[2a04:2181:c011:1::38bc:d823]: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
Click to show internal directories.
Click to hide internal directories.