Commit Graph

26 Commits

Author SHA1 Message Date
Roberto Abdelkader Martínez Pérez ed03e1a89f Added TODO about refactor 2019-10-11 11:05:40 +02:00
Roberto Abdelkader Martínez Pérez c2ab6a0de1 Implemented internal/server/user.Run(). Will be tested with E2E. 2019-10-11 08:43:40 +02:00
Roberto Abdelkader Martínez Pérez bbca5873a0 Update mux on delete route 2019-10-11 07:56:10 +02:00
pancho horrillo df5d38e94f swappableMux is now public and Append() now updates Server.Handler
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-10 20:22:09 +02:00
pancho horrillo b4dd6e9805 Add New() func & Update() method to internal/server/user/mux/swappableMux
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-10 19:26:17 +02:00
pancho horrillo 463382bfb2 Add internal/server/user/mux/handlerbuilder{,_test}.go
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-10 18:16:15 +02:00
pancho horrillo 2129c4a1f6 internal/server/model.Handler.Route is no longer a pointer
Also Spawn() now checks if entrypoint is not set

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-10 18:16:15 +02:00
pancho horrillo a39e0f6605 Spawner ready
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-10 11:49:58 +02:00
pancho horrillo d0764f07a4 First cut to spawner
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-09 18:28:33 +02:00
pancho horrillo 49252a78a6 Fix misuse of gorilla/mux.Router{} use mux.NewRouter() instead
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-09 15:22:50 +02:00
pancho horrillo 401644b65e Finish gorillize()
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-09 13:10:04 +02:00
Roberto Abdelkader Martínez Pérez 8729e1e492 Implement Route.Delete()
Co-authored-by: pancho horrillo <pedrofelipe.horrillo@bbva.com>
2019-10-09 11:45:41 +02:00
Roberto Abdelkader Martínez Pérez 6810cb99ee Add List method to Routes singletone returning the list of numbered routes 2019-10-09 09:54:27 +02:00
Roberto Abdelkader Martínez Pérez 31f6015110 Increase legibility of gorillize function 2019-10-09 08:39:12 +02:00
Roberto Abdelkader Martínez Pérez f656f9f3b0 Change function gorillize signature slightly 2019-10-08 21:09:48 +02:00
pancho horrillo 2cd96d5a4b Add the controversial gorillize()
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-08 19:39:44 +02:00
pancho horrillo 037347dbe3 Augment safeRouteList.Append() to return a model.Route with index
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-08 17:53:15 +02:00
pancho horrillo e0dd6f5dd5 Refactor internal/server/user package structure
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-08 17:22:09 +02:00
pancho horrillo 2eb32610a0 Exclude test from race condition verification
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-08 15:34:42 +02:00
pancho horrillo 3b405bd9f6 Add ServeHTTP() method to swappableMux struct
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-08 15:06:08 +02:00
Roberto Abdelkader Martínez Pérez 0348df1df5 Prevent linter from reporting a deprecation warning in a test 2019-10-08 09:09:47 +02:00
Roberto Abdelkader Martínez Pérez 22f03eb67f Move swappableMux and its methods to its own module 2019-10-08 09:01:40 +02:00
pancho horrillo 10586bae95 Add internal/server/user/server{,_test}.go
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-07 19:05:59 +02:00
Roberto Abdelkader Martínez Pérez 47bd2be882 Some fixes suggested by golangci-lint 2019-10-07 08:53:48 +02:00
Roberto Abdelkader Martínez Pérez 25409a2cee Exclude tests from race check 2019-10-05 12:28:01 +02:00
Roberto Abdelkader Martínez Pérez 62ec810e6d Implemented user server state aka route list 2019-10-05 12:22:38 +02:00