Esempio n. 1
0
//Start registers directhttpservice instances
func Start( /*remotes []string*/ ) {
	services.Registerblobgeter(Instance)
	services.Registercommitgeter(Instance)
	services.Registertaggeter(Instance)
	running = true
	//hosts = remotes
}
Esempio n. 2
0
//Start registers appsscriptservice instances
func Start() {
	Instance = appsscriptservice{}
	services.Registerblobgeter(Instance)
	services.Registercommitgeter(Instance)
	services.Registertaggeter(Instance)
	services.Registerkeygeter(Instance)
	running = true
}
Esempio n. 3
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
}
Esempio n. 4
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

}
Esempio n. 5
0
//Start registers googledriveservice instances
func Start() {
	var err error
	Instance, err = googledriveserviceFactory()
	if err == nil {
		services.Registerblobgeter(Instance)
		services.Registercommitgeter(Instance)
		services.Registertaggeter(Instance)
		services.Registerkeygeter(Instance)
		running = true
	} else {
		log.Println(err)
		running = false
	}
}
Esempio n. 6
0
//Start registers multicastservice instances
func Start() {
	Instance = multicastservicefactory()
	if Instance.conn == nil {
		running = false
		log.Printf("No network connection to start multicast service")
		return
	}
	Instance.listenmessage()
	services.Registerblobgeter(Instance)
	services.Registercommitgeter(Instance)
	services.Registertaggeter(Instance)
	services.Registerkeygeter(Instance)
	running = true
}