pancho horrillo
2d5743af84
Add blank line between legal header and package declaration
...
Otherwise, the legal header is rendered as package documentation.
2019-11-13 18:18:44 +01:00
Héctor Hurtado
a54c6f24a1
Added getRoute to control api
2019-10-24 17:52:03 +02:00
Héctor Hurtado
723e4787b3
Added legal header to all Go source files
2019-10-23 13:35:01 +02:00
pancho horrillo
034a5ab677
Fix typo in comment
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-22 16:29:54 +02:00
Roberto Abdelkader Martínez Pérez
304276db47
Fix dummy return. Closes #34
2019-10-18 23:55:25 +02:00
pancho horrillo
b4f2e9ffdd
Refactor tests
...
* Get rid of spurious model.Route{} var, by adding content
directly into model.Handler{} literal.
* Adjust spacing to adhere to the prepare-call-test test structure.
2019-10-13 08:17:16 +02:00
pancho horrillo
c62a0d6a9a
Sort imports intro three blocks (stdlib, non-stdlib, current prj)
2019-10-13 08:09:15 +02:00
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