示例#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
}
示例#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

}