Files
core/Peernet.go
Kleissner cec070b740 Introducing Warehouse - the store for files shared by the user.
New endpoints:
/warehouse/create               Create a file in the warehouse
/warehouse/create/path          Create a file in the warehouse via copy
/warehouse/read                 Read a file in the warehouse
/warehouse/delete               Delete a file in the warehouse
2021-10-13 01:40:58 +02:00

34 lines
647 B
Go

/*
File Name: Peernet.go
Copyright: 2021 Peernet s.r.o.
Author: Peter Kleissner
*/
package core
// Init initializes the client. The config must be loaded first!
func Init() {
initFilters()
initPeerID()
initUserBlockchain()
initUserWarehouse()
initKademlia()
initMessageSequence()
initSeedList()
initMulticastIPv6()
initBroadcastIPv4()
initStore()
initNetwork()
}
// Connect starts bootstrapping and local peer discovery.
func Connect() {
go bootstrapKademlia()
go bootstrap()
go autoMulticastBroadcast()
go autoPingAll()
go networkChangeMonitor()
go autoBucketRefresh()
go startUPnP()
}