Commit Graph

7 Commits

Author SHA1 Message Date
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