func setUpServer() (*server.Server, store.ObjectStore) { log.Println("Setting up test store and test server") teststore := store.NewMapStore() testserver := server.NewServer(teststore) testserver.Init() return testserver, teststore }
func main() { st := store.NewMapStore() s := server.NewServer(st) s.Init() s.AddResponder(impl.NewOrderAPIResponder(st)) s.AddResponder(impl.NewInventoryRequestResponder(st)) s.Open(address) }