This website requires JavaScript.
39978a6743
Merge pull request #4 from xdrm-io/test/coverage
0.4.0
v0.4.2
xdrm-brackets
2021-06-23 09:13:39 +0200
ccacd72a36
feat: handler differentiates missing and invalid parameter
Adrien Marquès
2021-06-22 23:43:27 +0200
3613581b1c
fix: reqdata checks for missing form input globally for json, multipart, url encoded
Adrien Marquès
2021-06-22 23:43:15 +0200
90e62b7e72
test: handler top-level errors: service, params
Adrien Marquès
2021-06-22 23:06:39 +0200
1cc24be254
feat: url encoded parameters (uri + form) are only considered a slice when multiple values are set
Adrien Marquès
2021-06-22 23:06:15 +0200
fcc8b39717
fix: ignore uri query for service pattern matching
Adrien Marquès
2021-06-22 22:45:47 +0200
2b67655cfd
refactor: reduce cyclomatic complexity of service.validateInput()
Adrien Marquès
2021-06-22 22:18:29 +0200
140fbb8b23
fix: gofmt: with -s argument
Adrien Marquès
2021-06-22 21:16:25 +0200
f4f49e6ae6
fix: lint: consistent receiver name
Adrien Marquès
2021-06-22 21:15:25 +0200
c048db76e6
fix: ineffectual assignments
Adrien Marquès
2021-06-22 21:14:38 +0200
ad86a3b46b
fix: mispells
Adrien Marquès
2021-06-22 21:11:59 +0200
ad178781ac
test: cover dynfunc signature to 100%
Adrien Marquès
2021-06-21 22:46:04 +0200
178d9a8eee
refactor: export config errors
Adrien Marquès
2021-06-21 21:50:57 +0200
19bcc2e8dc
test: cover api context
Adrien Marquès
2021-06-21 21:46:03 +0200
8b92abd1c2
fix: remove debug/typo
Adrien Marquès
2021-06-20 21:52:43 +0200
89e81617d5
test: cover response
Adrien Marquès
2021-06-20 21:52:43 +0200
cff4106bf5
refactor: unexport api.Response into aicra.response
Adrien Marquès
2021-06-20 21:52:43 +0200
f17622195a
test: cover builtin types
Adrien Marquès
2021-06-20 21:52:43 +0200
461c17299e
test: cover builder
Adrien Marquès
2021-06-20 21:52:42 +0200
8c122e9ddf
feat: export dynfunc errors
Adrien Marquès
2021-06-20 21:52:11 +0200
b4a426adcc
fix: cover api.Auth
xdrm-brackets
2021-06-20 21:51:34 +0200
6182276856
Merge pull request #3 from xdrm-io/refactor/validators
xdrm-brackets
2021-06-21 21:34:17 +0200
de547576c9
refactor: semantic move 'builtin' into 'validator'
Adrien Marquès
2021-06-21 21:30:33 +0200
defa2c3645
refactor: rename semantics of datatype to validator.Type
Adrien Marquès
2021-06-21 21:08:22 +0200
0ee814abbe
Merge pull request #1 from xdrm-io/migrate/github
xdrm-brackets
2021-06-20 21:51:03 +0200
36991ea9ef
docs: add build status
Adrien Marquès
2021-06-20 21:49:56 +0200
b3ef7de624
migrate: drone CI to github actions
Adrien Marquès
2021-06-20 21:47:17 +0200
822ef823e9
migrate: symbols import paths to github
Adrien Marquès
2021-06-20 21:29:46 +0200
77a1f3b11d
Merge pull request 'docs: fix logo asset url to branch 0.4.0' (#26 ) from fix/readme-asset-url into 0.4.0
v0.4.0
Adrien Marquès
2021-06-20 08:35:45 +0000
a8d7905180
docs: fix logo asset url to branch 0.4.0
Adrien Marquès
2021-06-20 10:35:08 +0200
cc25995659
Merge pull request 'refactor/idiomatic-handlers-middlewares' (#25 ) from refactor/idiomatic-handlers-middlewares into 0.4.0
Adrien Marquès
2021-06-20 08:26:27 +0000
fd1ced5a8b
fix: restore request denied on invalid auth after contextual middlwares
Adrien Marquès
2021-06-20 10:24:12 +0200
97941da901
docs: update README for context.Context and middlewares
Adrien Marquès
2021-06-20 02:16:24 +0200
af63c4514b
refactor: idiomatic remove of api.Context for context.Context, custom middlewares for standard http middlewares
Adrien Marquès
2021-06-20 02:14:31 +0200
6a78351a2c
doc: update README for *api.Context handler argument
Adrien Marquès
2021-06-20 00:56:25 +0200
53dfc8f679
feat: *api.Context is required as first handler argument
Adrien Marquès
2021-06-20 00:47:04 +0200
ed404106f2
refactor: rename api.Ctx to api.Context, extends context.Context with helper methods
Adrien Marquès
2021-06-20 00:46:42 +0200
fa1ecfd97f
feat: create internal context.Context custom keys
Adrien Marquès
2021-06-20 00:46:04 +0200
418631e09d
Merge branch 'feature/improve-readme' into 0.3.0
0.3.0
Adrien Marquès
2021-06-19 00:25:01 +0200
2d87052dda
fix: typos
Adrien Marquès
2021-06-19 00:24:26 +0200
610ab66ea8
readme: add logo, improve structure and explanations
Adrien Marquès
2021-06-19 00:17:37 +0200
3563d53365
Merge pull request 'feature: dynamic scope using input arguments' (#23 ) from feature/dynamic-scope into 0.3.0
v0.3.5
Adrien Marquès
2021-05-19 12:06:19 +0000
c35e2fdd9a
fix: do not use optional (nil) inputs for dynamic scope
xdrm-brackets
2021-05-18 17:45:07 +0200
8c2ebd916e
feat: add test coverage
xdrm-brackets
2021-05-18 16:30:20 +0200
2a17ba2f72
fix: allow non-Stringer using %v format (unsafe but does the job)
xdrm-brackets
2021-05-18 16:24:31 +0200
346cc4e557
feat: add dynamic scope from request's input
xdrm-brackets
2021-05-18 16:06:49 +0200
214e2348aa
Merge pull request 'feature: authentication middlewares' (#20 ) from feature/expose-scope into 0.3.0
Adrien Marquès
2021-05-18 13:57:56 +0000
976b13bd38
Merge pull request 'fix: remove error status from json' (#22 ) from fix/json-err-status into 0.3.0
v0.3.4
Adrien Marquès
2021-05-18 09:10:53 +0000
3bb02fcbb7
fix: remove error status from json
xdrm-brackets
2021-05-18 11:10:12 +0200
06d5fe51e5
feat: add optional error data
xdrm-brackets
2021-05-18 10:19:10 +0200
4a62df8029
feat: handle auth adapters
xdrm-brackets
2021-05-18 09:59:49 +0200
4f55302e8a
feat: add WithAuth() to builder using api.AuthAdapter interface
xdrm-brackets
2021-05-18 09:36:33 +0200
18d809c4ca
feat: create api.Auth wrapping authorization management
xdrm-brackets
2021-05-18 09:34:01 +0200
e3d24ae1ef
Merge pull request 'feature: add optional context to handlers' (#19 ) from feature/context into 0.3.0
v0.3.3
Adrien Marquès
2021-05-10 14:42:57 +0000
af106acd3f
refactor: test: dynamic function handler
Adrien Marquès
2021-04-19 23:34:31 +0200
b88a4439c8
fixup: update comment for optional api.Ctx
Adrien Marquès
2021-04-19 22:15:34 +0200
e44dab4bc9
fixup: remove HasContext from spec
Adrien Marquès
2021-04-19 19:55:00 +0200
1245861be7
test: builder
Adrien Marquès
2021-04-19 18:46:18 +0200
d6f8457274
feat: pass optional context argument to handlers
Adrien Marquès
2021-04-18 19:31:54 +0200
939ab2e57d
fixup: expose api context fields
Adrien Marquès
2021-04-18 19:31:40 +0200
0a55c2ee13
feat: add optional api.Ctx first argument to handler checker
Adrien Marquès
2021-04-18 19:25:31 +0200
24be7c294e
test: dynamic func input
Adrien Marquès
2021-04-18 18:26:37 +0200
f334d19ef4
feat: add api context type
Adrien Marquès
2021-04-18 18:14:30 +0200
08b825b38f
Merge pull request 'feature: add http middleware capability' (#18 ) from feature/middleware into 0.3.0
Adrien Marquès
2021-04-18 16:08:10 +0000
a693bbbf9b
fix: reflect assign value to pointer of value in call argument
Adrien Marquès
2021-04-18 17:55:48 +0200
3986f7a022
fix: remove recoverer and body closer; must be users' responsability
Adrien Marquès
2021-04-18 17:53:53 +0200
14ae59561c
feat: encapsulate request handling into adapters
Adrien Marquès
2021-04-18 16:50:02 +0200
96164127e1
feat: add Use() method to add adapters to the aicra builder
Adrien Marquès
2021-04-18 16:49:46 +0200
87c15b91e5
feat: add middleware (Adapter) type
Adrien Marquès
2021-04-18 16:49:24 +0200
5e5ca2d693
feat: add api context to handlers and add middlewares with Builder.With()
Adrien Marquès
2021-04-17 14:03:59 +0200
5730966d35
feat: add api context and middleware interface
Adrien Marquès
2021-04-17 14:03:21 +0200
f3127edde1
Merge pull request 'improvements, fixes, update to go 1.16' (#16 ) from refactor/go1.16 into 0.3.0
v0.3.2
Adrien Marquès
2021-03-28 17:44:58 +0000
546130cfd0
update: readme
Adrien Marquès
2021-03-28 19:41:25 +0200
11aa9f0a0f
fix: global handler recoverer
Adrien Marquès
2021-03-28 19:05:43 +0200
468a09be8d
update: rename 'Server' into 'Handler'
Adrien Marquès
2021-03-28 19:03:16 +0200
10e59acdae
fix: test string-int concatenation warnings
Adrien Marquès
2021-03-28 18:50:25 +0200
334f1fba21
feat: add builder helpers Get(), Post(), Put(), Delete() that proxies to Bind()
Adrien Marquès
2021-03-28 18:50:04 +0200
6039fbb41f
update: api.Err system
Adrien Marquès
2021-03-28 18:49:23 +0200
a9acfca089
update go.mod to go 1.16
Adrien Marquès
2021-03-28 18:06:09 +0200
fb69dbb903
Merge branch 'refactor-test' of go/aicra into 0.3.0
v0.3.1
Adrien Marquès
2020-04-04 15:33:43 +0000
658c66d2db
update readme
Adrien Marquès
2020-04-04 17:33:08 +0200
3c453e7f89
remove api useless request, update default errors and bind status codes to errors
Adrien Marquès
2020-04-04 16:03:50 +0200
d198086dd4
fix http error handlers
Adrien Marquès
2020-04-04 16:03:12 +0200
30862195a1
config: refactor, simplify, test, remove redundant comments
Adrien Marquès
2020-04-04 15:39:00 +0200
990bb86919
rework reqdata api and remove redundant comments
Adrien Marquès
2020-04-04 14:56:15 +0200
35ede5e266
unexport config errors
Adrien Marquès
2020-04-04 14:34:20 +0200
90472b8bf7
unexport dynfunc errors
Adrien Marquès
2020-04-04 12:46:43 +0200
df56496a16
dynfunc: normalize file names
Adrien Marquès
2020-04-04 12:45:36 +0200
caa57889b4
multipart: rename files and unexport errors
Adrien Marquès
2020-04-04 12:43:55 +0200
4ba62e19c7
remove func.go and standardize main file name
Adrien Marquès
2020-04-04 12:42:18 +0200
5cadfcf78b
unexport aicra errors
Adrien Marquès
2020-04-04 12:40:21 +0200
e0ea0c97c5
clarify datatype comments and standardize file name
Adrien Marquès
2020-04-04 12:40:01 +0200
6319761731
Merge branch 'test/dynamic' of go/aicra into 0.3.0
Adrien Marquès
2020-04-04 10:09:19 +0000
92da498d49
remove server logs and util file
Adrien Marquès
2020-04-04 12:06:31 +0200
60ef4717a8
clarity: aicra server request management
Adrien Marquès
2020-04-04 12:05:17 +0200
5cc3d2d455
use http.Request instead of pointer
Adrien Marquès
2020-04-04 12:03:29 +0200
c5cdba8007
move aicra builder and server into their own files
Adrien Marquès
2020-04-04 11:50:01 +0200
09362aad83
make 'dynfunc' internal
Adrien Marquès
2020-04-04 11:49:33 +0200
d69dd2508c
refactor aicra: meaningful defaults, stage renaming Builder.Build() -> Server
Adrien Marquès
2020-04-04 11:46:37 +0200
1e0fb77d61
standardize and simplify the config package
Adrien Marquès
2020-04-04 11:45:49 +0200