Commit Graph

207 Commits

Author SHA1 Message Date
Adrien Marquès 049400e2be rename 'response' to 'api' 2018-10-07 11:23:00 +02:00
Adrien Marquès 5e7ece3f30 fix mispelled words 2018-10-07 11:14:54 +02:00
Adrien Marquès d590d31327 add exported fields' comments 2018-10-07 11:14:04 +02:00
Adrien Marquès 104111b02e remove useless additional doc 2018-10-04 17:05:43 +02:00
Adrien Marquès 34ca1d991f add getters for response.Arguments (getUint(), getInt(), getFloat(), get(), getString()) 2018-10-04 17:05:10 +02:00
Adrien Marquès 8d3e678d73 update TOC in readme 2018-10-04 12:48:31 +02:00
Adrien Marquès bdae6008a0 generic driver now uses argv[1] and argv[2] to send method name and data 2018-10-04 12:43:52 +02:00
Adrien Marquès 846112b053 big update of the readme with examples and driver.generic input/output data definition 2018-10-04 12:39:43 +02:00
Adrien Marquès 50d9bceec7 update 'aicra' command now chdir to first argument (to find the aicra.json conf and to have a valid relative path from its 'root' field) 2018-10-04 12:31:48 +02:00
Adrien Marquès 0053f475e2 update readme : add spaces before titles, update changelog, and minimal changes 2018-10-03 18:46:24 +02:00
Adrien Marquès be1ceb07a2 merge 2018-10-03 18:39:47 +02:00
Adrien Marquès d2e335a57f doc update 2018-10-03 18:37:37 +02:00
Adrien Marquès 672a4d8ad5 update readme 2018-10-03 17:08:36 +02:00
Adrien Marquès 54d4b860de release req.Body when serving http 2018-10-02 17:14:44 +02:00
Adrien Marquès 37efb58b7b aicra compilation optimisation to gain 20% executable size 2018-10-02 12:11:46 +02:00
Adrien Marquès 9def4e6c03 minfix 2018-10-02 12:05:04 +02:00
Adrien Marquès e15772c2f4 edit previous PHP doc (not finished) 2018-10-02 12:05:04 +02:00
Adrien Marquès fe3034818d add 'id' (positive 'int') type checker 2018-10-02 12:00:57 +02:00
Adrien Marquès 93aa8b66dc add 'bool' type checker 2018-10-02 11:59:12 +02:00
Adrien Marquès 12ddf1feae add 'float' type checker 2018-10-02 11:55:47 +02:00
Adrien Marquès e43623d108 default type check 'string' does not use 'reflect' no more 2018-10-02 11:50:01 +02:00
Adrien Marquès 50de7a4297 default type check 'int' does not use 'reflect' anymore 2018-10-02 11:46:22 +02:00
Adrien Marquès f9a928c181 add 'digest(length)' type checker + minfix import in cmd/main 2018-10-02 11:34:58 +02:00
Adrien Marquès b1092437f9 refactor default type checkers | load default types if set in aicra.json (.build/DEFAULT_TYPES/*.so) 2018-10-02 11:10:21 +02:00
Adrien Marquès e20f174bf0 edit previous PHP doc (not finished) 2018-10-02 10:55:18 +02:00
Adrien Marquès 8c0d4df4b3 update readme install command 2018-10-02 09:58:51 +02:00
Adrien Marquès 85a0521723 rename err.BindArgument() to err.Put() 2018-10-01 21:21:27 +02:00
Adrien Marquès ee19846ddc unexport driver.generic mockups 2018-10-01 21:16:59 +02:00
Adrien Marquès b02dc60b3d update readme to drivers, etc 2018-10-01 21:11:11 +02:00
Adrien Marquès d406338777 implement driver for type checkers | move controller/middleware/checker definition inside the 'driver' package (all uses are exported from this place) | now driver.Driver returns 'Controller', 'Middleware', and 'Checker' in the interface | a lot a junk 2018-10-01 19:27:38 +02:00
Adrien Marquès 37fe30ebc7 rename 'internal/meta' to 'internal/config' | move driver type definition into explicit file + remove 'import' driver | remove useless method to parse multipart 2018-10-01 17:43:18 +02:00
Adrien Marquès 253a2b0b59 minfix in 'AICRA' command | plugins are now using the Export() method to return Controller/Middleware 2018-10-01 15:27:56 +02:00
Adrien Marquès 7bcbefdf35 rename 'internal/config' to 'internal/api' | rename 'internal.api.Load()' to 'internal.api.Parse()' 2018-10-01 14:15:00 +02:00
Adrien Marquès fd6d7b661e add implementation to 'default types' 2018-10-01 14:02:09 +02:00
Adrien Marquès 17bb63b9de minmod 2018-10-01 12:36:26 +02:00
Adrien Marquès b6e19c255b implement 'AICRA' command | system to parse config, set defaults, infer map of sources from a folder, etc 2018-10-01 12:29:05 +02:00
Adrien Marquès c51281c731 create import driver (not finished) 2018-09-29 17:01:58 +02:00
Adrien Marquès 5db546e964 min mod : comment exported fields 2018-09-28 18:30:49 +02:00
Adrien Marquès 0de217f362 merge conflicts 2018-09-28 16:02:51 +02:00
Adrien Marquès 9c9079f06b add 'driver.Driver.Name() string' and use it to select the default type/middleware folder (.build/middleware or middleware) | fix driver.Generic.LoadMiddleware() | remove variadic arguments for middleware.CreateRegistry() and checker.CreateRegistry() 2018-09-28 15:59:21 +02:00
Adrien Marquès b957d82a64 implement driver.Generic.LoadMiddleware() [TODO] test it 2018-09-28 11:13:01 +02:00
Adrien Marquès 366e948d6b implement driver.Generic.LoadMiddleware() [TODO] test it 2018-09-28 11:08:44 +02:00
Adrien Marquès 2cfc5a2ba0 update 'middleware' types | rename driver.Driver.Load() into RunController() | add driver.Driver.LoadMiddleware() | add driver management to middleware.Registry at creation | [TODO] implement diver.Generic.LoadMiddleware() 2018-09-28 10:54:13 +02:00
Adrien Marquès 74e4ce83cb restrict parameter names in config + ignore parameter names in received requests 2018-09-28 08:54:04 +02:00
Adrien Marquès f5800900b0 rename 'internal/apirequest' to 'internal/request' but use import alias 'apirequest' in dependencies 2018-09-28 08:10:41 +02:00
Adrien Marquès 9fa18b8736 fix import/varname conflict 2018-09-28 08:04:36 +02:00
Adrien Marquès 2baee4a066 update 'driver/generic' now working (~44ms for simplest use) 2018-09-27 14:33:03 +02:00
Adrien Marquès fced676c42 add 'driver/generic' (to test, alpha version) 2018-09-27 14:11:48 +02:00
Adrien Marquès 3feae783dc add driver management + moved implementation of default driver into 'driver/plugin' 2018-09-27 13:43:36 +02:00
Adrien Marquès 8c02bc53a5 add \r\n management instead of just \n + test the new behaviour 2018-09-26 09:36:41 +02:00