Esempio n. 1
0
func main() {
	api := api.NewApi(memory.New())
	api.Run()
}
Esempio n. 2
0
func (s *S) SetUpTest(c *C) {
	s.ng = memory.New()
	s.api = api.NewApi(s.ng)
	s.server = httptest.NewServer(s.api.Handler())
	httpClient = requests.NewHTTPClient(s.server.URL)
}