Commit Graph

325 Commits

Author SHA1 Message Date
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
Adrien Marquès 05d5c23038 fix aicra.files.IsDir() which logic was inverted | make add() private for registries (checker + middleware) + fix server.go (invalid address for Server.controller because wasn't initialized to NIL) 2018-07-11 01:51:10 +02:00
Adrien Marquès 1aee9e92fd rename package 'request' -> 'apirequest' ; 'config' -> 'controller' + main types.go bundled into server.go + made attributes non-exported (lowercase) 2018-07-11 01:36:42 +02:00
Adrien Marquès 0a756dbebb fix readme 2018-07-09 08:16:30 -04:00
Adrien Marquès 61b3c6c91c min rename 2018-07-09 01:37:57 +02:00
Adrien Marquès 637bc91770 LINT: renaming + refactor 2018-07-09 01:34:21 +02:00
Adrien Marquès 2f7332a256 bad english 2018-07-09 01:15:16 +02:00
Adrien Marquès c2a03e1efc add godoc badge into readme 2018-07-09 01:13:06 +02:00
Adrien Marquès e6261e4678 LINK err/interface 2018-07-09 01:08:04 +02:00
Adrien Marquès 6ebdd61325 LINT + Server.extractParameters is now private + add management for errors : 'UncallableController' and 'UncallableMethod' 2018-07-09 01:00:45 +02:00
Adrien Marquès 0ccee7c950 comment errors 2018-07-09 00:59:50 +02:00
Adrien Marquès 0bf5646eb7 remove setters for checker/middleware build folders 2018-07-09 00:32:19 +02:00
Adrien Marquès d04bafa0eb dispatch cmd/main into files.go 2018-07-09 00:29:25 +02:00
Adrien Marquès 5e14394966 update readme screenshot 2018-07-09 00:17:55 +02:00
Adrien Marquès 07bbdbbe30 rename 'implement' into 'response' 2018-07-09 00:15:29 +02:00
Adrien Marquès 6784c2df95 moved local imports into 'internal' parent package 2018-07-09 00:10:03 +02:00
Adrien Marquès a555356cd8 misspell fix 2018-07-08 19:18:38 +02:00
Adrien Marquès bce8bf5677 fix space ' ' inside image link 2018-07-08 19:15:41 +02:00
Adrien Marquès 0046c165b2 update readme + add badges 2018-07-08 19:13:01 +02:00
Adrien Marquès 0ab05816ea fix 2018-07-08 11:44:39 +02:00
Adrien Marquès 6273ded5d7 add elapsed ms to builder 2018-07-08 11:35:45 +02:00
Adrien Marquès e5f7cf1147 controller name cannot contain '-', plugin packages are in 'controller/plugin-path-dash-separated/main.go' + root is '/controller/ROOT/main.go' 2018-07-08 11:30:53 +02:00
Adrien Marquès 9808dd6de4 update readme 2018-07-08 10:48:15 +02:00
Adrien Marquès bd1dbcf6aa update readme 2018-07-08 10:44:50 +02:00
Adrien Marquès badf6dcf57 remove response mutex 2018-07-08 10:14:49 +02:00