Adrien Marquès
aa9ef778eb
Update readme
2019-11-19 16:16:42 +01:00
Adrien Marquès
9bf7f24ec9
feat: typechecks: tests for 'float64'
2019-11-19 16:16:42 +01:00
Adrien Marquès
4c5f13933c
feat: typechecks: tests for 'uint' + add string repr for 'int'
2019-05-06 18:34:21 +02:00
Adrien Marquès
4e36adfcc9
readme: add ci badge
2019-05-06 18:34:21 +02:00
Adrien Marquès
f53dfcbf62
ci: create jenkins file
2019-05-06 18:34:11 +02:00
Adrien Marquès
be84c86172
fix: use t.Run in tests instead of for{} with i
2019-05-05 19:01:54 +02:00
Adrien Marquès
21f48a65ee
feat: parallelize tests +ci
2019-05-05 19:01:54 +02:00
Adrien Marquès
bf3e651c2c
ref: clean comments and make errors constants
2019-05-05 19:01:54 +02:00
Adrien Marquès
0780e8dd33
feat: update string type checker | test: string, int, float, any typecheckers
...
feat: string type checker pre-process min,max/fixed length(s) before returning the CheckerFunc
feat: add typecheckers for 'any', 'float' and 'int' (managing number overflows)
2019-05-05 19:01:54 +02:00
Adrien Marquès
bafaad97e6
clean: request param now uses internal const error 'cerr'
2019-05-05 19:01:54 +02:00
Adrien Marquès
a83d077569
feat: add builtin types [int, uint] | fix request param getters | add request param getters [GetFloat, GetInt, GetUint, GetStrings] with permissive possible types and 'automatic' conversion
2019-05-05 19:01:54 +02:00
Adrien Marquès
eb5ce4c0d0
fix: semantic renaming : internal.config.Method.Permission is now Scope
2019-05-05 19:01:54 +02:00
Adrien Marquès
189d3b40a6
fix: semantic (comments) renaming : 'controller' to 'service', more explicit names
2019-05-05 19:01:54 +02:00
Adrien Marquès
6afedf190f
ref 1: clean server.go code + response implements http.Handler + add generic getter on request params Get() (interface{},error)
2019-05-05 19:01:54 +02:00
Adrien Marquès
0e498607ba
clean
2019-05-05 19:01:54 +02:00
Adrien Marquès
0912e07f4f
fix: pass error arguments as values not array + set header after
...
WriteHeader()
2019-05-05 19:01:54 +02: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
d0f5277bf4
fix: prefix service path with '/' if missing
2019-05-01 16:28:16 +02:00
Adrien Marquès
16ea60f2aa
fix: add data to 'ErrorUncallableMethod' and 'ErrorUncallableService'
2019-05-01 16:20:32 +02:00
Adrien Marquès
98ae854251
feat: add scope to request
2019-05-01 15:56:18 +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
0a63e9afcc
removed commands
2019-05-01 11:29:04 +02:00
Adrien Marquès
16d3399ee9
ref 0: internal.checker renamed typecheck (no more internal)
2019-05-01 11:28:55 +02:00
Adrien Marquès
8d45d3241b
ref 0: internal.checker defines an interface ; default types are in internal.checker.builtin
2019-05-01 11:23:05 +02:00
Adrien Marquès
8109f57d15
ref 0: internal.apidef becomes internal.config + refactoe
2019-05-01 10:29:23 +02:00
Adrien Marquès
a63e227538
ref 0: internal/request
2019-05-01 00:02:28 +02:00
Adrien Marquès
b428c75f25
use go modules
2019-05-01 00:01:42 +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
f157785cff
update / fix readme
2018-10-07 11:26:31 +02:00
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