Commit Graph

249 Commits

Author SHA1 Message Date
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
Adrien Marquès ff9ff23e5a fix \r\n trim for multipart lines 2018-09-26 08:09:55 +02:00
Adrien Marquès 0974658bf2 add debug to debug body parsers 2018-09-26 07:35:53 +02:00
Adrien Marquès 592ed23638 update multipart parser + tests 2018-09-25 21:22:25 +02:00
Adrien Marquès f76e3d35fa update readme + comment 2018-09-13 10:21:35 +02:00
Adrien Marquès e13732c381 add readme TOC (table of contents) 2018-07-11 19:13:15 +02:00
Adrien Marquès 4264a10891 add readme badge: licence-MIT 2018-07-11 19:06:11 +02:00
Adrien Marquès 5aef3f5572 server implements http.Handler (ServeHTTP(responseWrite, request)) | apirequest.BuildFromHTTPRequest() becomes apirequest.FromHTTP() | update readme 2018-07-11 19:02:33 +02:00
Adrien Marquès eeec067e15 Merge branch 'master' of gogs:go/aicra 2018-07-11 01:51:36 +02:00