Gerasimos (Makis) Maropoulos
|
ed79f0c3cd
|
ok the new mvc system works great, all tests done and almost x3 smaller LOC used plus new three awesome features:) - next commit will be commenting out and replace the mvc package with the new mvc2
Former-commit-id: 552095d29256a1116849cc6054c82001e790e705
|
2017-12-10 07:00:51 +02:00 |
|
kataras
|
a7b2a90e3b
|
cm
Former-commit-id: 8f99121b81dc76c04d5910117885d9286873f26c
|
2017-12-04 05:08:05 +02:00 |
|
kataras
|
7043f352d9
|
made it work but looking for another approach
Former-commit-id: e61c4573543c57b8d6d4ef2583e40f52c391402f
|
2017-12-04 05:06:03 +02:00 |
|
kataras
|
dd5de52f34
|
implement a way to add controller functions as handlers with the existing rules respected but it's a bit dirty I will change the implementation and move the mvc2 to mvc and make the api builder's PartyFunc to be a critical part of the controller and the mvc2.Mvc bind values should be also respected to the controller and more
Former-commit-id: e452a916da80d886535b8ae9625d0ba8e2b58d6e
|
2017-11-27 21:39:57 +02:00 |
|
kataras
|
9d63e3194f
|
implement a simple path param binder
Former-commit-id: 2edc7f115332b7afe42d6b0b1b7b6edd4a44a121
|
2017-11-25 14:04:35 +02:00 |
|
kataras
|
5a3be2ab58
|
simplify by join the bind registration(ctx-transformer-to-something-func-binder and service one, which just sets the struct as it's) to one named 'In' and create a 'Child' which will return a new mvc instance with binders inheritanced from the parent one and add a simple test to the mvc_test.go - will have more later on
Former-commit-id: 81ae99390c683a61e1b0bac58725a04b9a3eebbb
|
2017-11-24 17:34:35 +02:00 |
|
kataras
|
29835d9a8e
|
black-box the MakeHandler, works perfectly.
Former-commit-id: d325be0e953efc2f841c69f62233b34d4a58ab62
|
2017-11-24 15:10:30 +02:00 |
|
kataras
|
bfec1d174f
|
implement the makeHandler and structure the high-level mvc's API
Former-commit-id: 412118eae436981711ef57821f2d85b77a5d1a12
|
2017-11-24 12:32:35 +02:00 |
|
kataras
|
3a46102d4d
|
I, think, that binders are done, both dynamic functions with different results every time (based on the context) and static services (interface as input(to give the devs the chance make better and most testable code) and struct or both are structs)
Former-commit-id: eb395b06003ea9eae005a36c9c6be0ef63c4d41d
|
2017-11-23 22:36:47 +02:00 |
|
kataras
|
de69b2fba2
|
start the new mvc - binder
Former-commit-id: 37e56f409ca136700452fb8fbff740fcca3e98bf
|
2017-11-23 12:43:29 +02:00 |
|