Adrien Marquès
d17a82f47a
Prettify logs
continuous-integration/drone/push Build is passing
Details
2019-11-19 19:19:55 +01:00
Adrien Marquès
712c047096
add startup logs
...
Log aicra configuration 'METHOD /PATH' when creating the instance
Log mapped handlers before starting listening
To know when we start listening (was transparently handled by http.ListenAndServer) ; added a wrapper around 'Server' (i.e. httpServer) that fulfills the http.Server interface
2019-11-19 16:16:42 +01:00
Adrien Marquès
7a87288876
fix: rename 'WrapError' to 'SetError' + shadow response error + response implements Error()
2019-05-05 19:01:54 +02:00
Adrien Marquès
1e4476ced5
feat: rename 'Error.Put' to 'SetArguments' with n >= 1 arguments + move 'WrapError' to response
2019-05-05 19:01:54 +02:00
Adrien Marquès
b9ca1801bd
fix: rename 'NewError' to 'WrapError'
2019-05-05 19:01:54 +02:00
Adrien Marquès
b9f240b86b
feat: fix error creation to bind arguments directly + add optional error argument in NewResponse()
2019-05-05 19:01:54 +02:00
Adrien Marquès
4e25c647b2
feat: add status code in response
2019-05-01 16:40:26 +02:00
Adrien Marquès
cd2bcdd8bc
ref 0: first working version ; totest
2019-05-01 15:14:49 +02:00
Adrien Marquès
7e66b6ddd5
ref 0: big refactor of concerns between api request, server, etc
2019-05-01 13:44:45 +02:00
Adrien Marquès
a63e227538
ref 0: internal/request
2019-05-01 00:02:28 +02:00
Adrien Marquès
0eee615aea
rename 'internal/api' to 'internal/apidef' (api definition)
2018-10-07 11:40:35 +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
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
3feae783dc
add driver management + moved implementation of default driver into 'driver/plugin'
2018-09-27 13:43: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
637bc91770
LINT: renaming + refactor
2018-07-09 01:34:21 +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
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
5fa8db0b7c
Init(manifest, typechecker), now typechecker is optional (not nil, optional) + rename package 'gfw' into 'aicra'
2018-07-07 18:12:50 +02:00
Adrien Marquès
f0719e606c
refactor 'router' + 'loader' into 'server'
2018-07-06 10:49:52 +02:00