Ejemplo n.º 1
0
//Start registers localfileservice instances
func Start() {
	services.Registerblobgeter(Instance)
	services.Registercommitgeter(Instance)
	services.Registertaggeter(Instance)
	services.Registertagsgeter(Instance)
	services.Registerkeygeter(Instance)
	services.Registerblobposter(Instance)
	services.Registercommitposter(Instance)
	services.Registertagposter(Instance)
	services.Registerkeyposter(Instance)
	running = true
}
Ejemplo n.º 2
0
//Start registers kademliadhtservice instances
func Start() {
	Instance = kademliaservicefactory()
	services.Registerblobgeter(Instance)
	services.Registercommitgeter(Instance)
	services.Registertaggeter(Instance)
	//services.Registertagsgeter(Instance)
	services.Registerkeygeter(Instance)
	services.Registerblobposter(Instance)
	services.Registercommitposter(Instance)
	services.Registertagposter(Instance)
	services.Registerkeyposter(Instance)
	running = true

}