Exemple #1
0
func OrchioMain() {
	gorest.RegisterServiceOnPath(orchioRoot, new(OrchioReadService))
	gorest.RegisterServiceOnPath(orchioRoot, new(OrchioWriteService))
	registerExtendedGraphServices()
	http.Handle("/", gorest.Handle())
	http.ListenAndServe(":8787", nil)
}
Exemple #2
0
func registerExtendedGraphServices() {
	if os.Getenv("CAVEMODE_EXTEND_GRAPH_DEPTH") == "true" {
		gorest.RegisterServiceOnPath(orchioRoot, new(GraphServiceExt))
	}
}