Denis Arh
7fd719364e
Fix options defaults (Defaults() fn must be called before fill())
2022-02-16 20:34:37 +01:00
Denis Arh
d27955daf3
Add missing locations to cue.fmt make task and re-run formatting
2022-02-09 10:09:47 +01:00
Denis Arh
3212f00325
Apply formatting to all cue files
2022-02-08 09:13:56 +01:00
Denis Arh
80d9b466ac
Add support for .env.example generator
2022-02-08 09:13:56 +01:00
Denis Arh
d09b037e84
Improve codegen templating tool
2022-02-08 09:13:56 +01:00
Denis Arh
d103d60a3d
Refactor option definitions
2022-02-08 09:13:56 +01:00
Denis Arh
3bddce4d35
Migrate codegen for locale to CUE
2022-02-03 13:41:17 +01:00
Denis Arh
5ba8fbb6f4
Disable options docs codegen
2022-02-01 17:55:46 +01:00
Denis Arh
a035e6106f
Ported options codegen to cue
2022-01-29 12:18:00 +01:00
Denis Arh
74d6eabf94
Various template & def fixes
2022-01-26 16:27:38 +01:00
Denis Arh
1284371bb3
Add cue tooling & codegen to makefile
2022-01-26 16:27:36 +01:00
Denis Arh
52209c476b
Port all v3 codegen to cue-based codegen
2022-01-26 16:25:54 +01:00
Denis Arh
a437913f85
Migrate codegen for envoy to CUE
2022-01-26 16:25:53 +01:00
Denis Arh
3568d0841e
Migrate codegen for locale to CUE
2022-01-26 16:25:53 +01:00
Denis Arh
c19ee84f5d
Base CUE, def, schemas
2022-01-26 16:25:53 +01:00
Denis Arh
3f30105d67
Remove obsolete codegen files
2020-08-24 15:38:42 +02:00
Denis Arh
709a3a946a
Improve auditlog meta handling (support for omitting empty values)
2020-05-31 10:38:27 +02:00
Denis Arh
ef47a0d612
Small codegen bits changes, add adoc template for events
2020-05-27 11:06:10 +02:00
Denis Arh
4d751c1875
Improve actionlog err/message placeholder replacement
2020-05-26 19:02:32 +02:00
Denis Arh
a0c732f6ff
Add check if lambda action can be called
2020-05-26 15:48:05 +02:00
Denis Arh
a7bc1e4d37
Cleanup actions, errors, implement actionlog for stats
2020-05-26 11:46:55 +02:00
Denis Arh
e8b81396ef
Support for HTTP errors, add sink impl.
2020-05-26 08:07:03 +02:00
Denis Arh
5f8fb8a294
Implementation actions & errors for access control, auth, role & user
2020-05-26 08:00:53 +02:00
Denis Arh
086411722e
Action log implementation
2020-05-22 07:16:14 +02:00
Denis Arh
b1a7425ddc
Refactor event codegen into subdir
2020-05-22 07:16:14 +02:00
Denis Arh
23bf0c52c7
Add missing raw&has for post&get
2020-04-08 17:02:07 +02:00
Denis Arh
5a966a2303
Add request param getters & checkers
2020-03-27 18:36:05 +01:00
Denis Arh
d2fcb352ec
Cleanup & refactor protobuf codegen
2020-02-26 08:20:59 +01:00
Denis Arh
991af03db7
More robust event args decoding
2020-02-25 06:53:54 +01:00
Denis Arh
9e14b50bce
Add ability to create events with imutable args
2020-02-25 06:47:41 +01:00
Denis Arh
abf4d106bb
Improve eventbus & constraints handling
...
Constraints are now preparsed into active structs
that can be used for matching
2020-01-18 07:05:35 +01:00
Denis Arh
75ab704ad8
Add event codegen
2020-01-18 07:05:34 +01:00
Denis Arh
f5f0096035
Remove internal/test pkg
2019-10-01 17:42:26 +02:00
Denis Arh
8309e6e710
Fix multival (string) requst param parsing (for POST)
2019-06-21 14:23:12 +02:00
Denis Arh
b7f78cdf91
Fix multival (string) request param parsing
2019-06-20 11:04:30 +02:00
Denis Arh
5c750fb7cf
Fix handler/request codegens
...
Missing return caused malformed response output:
{"error":{"message":"invalid username/password combination"}}{"response":false}
Remove param logging when params.Fill() returns an error
2019-05-28 10:51:56 +02:00
Denis Arh
22476933f4
Improve cli env setup & running
2019-05-26 08:41:20 +02:00
Denis Arh
b732894109
Fix codegen and its outputs
2019-05-24 12:46:30 +02:00
Tit Petric
4c166d92c6
Update codegen for cleanup/less verbosity
2019-05-22 16:37:53 +02:00
Tit Petric
68dc98ad92
add(all): test files for type-set
...
Signed-off-by: Tit Petric <black@scene-si.org>
2019-05-19 15:58:39 +02:00
Denis Arh
94d459eb7d
Rename handlers/request receivers
2019-05-16 00:52:50 +02:00
Denis Arh
1c1643fbe7
Add support for auditable params
...
With Auditable() func on request structs we can now be more selective
about params we want to log:
- sensitive data (with sensitive flag on params)
- filesize & name on uploads
2019-05-16 00:43:54 +02:00
Denis Arh
aea9741a2b
Improve logging, migrate to zap, use requestID
...
- migrate from log to go.uber.org/zap package
- add requestID header with sticky log field
- push logging via context to REST controllers & HTTP middleware
- enhance request/resnpose logging
- add service logging framework
- add ZapProfiler for db query profiling
2019-05-07 21:18:23 +02:00
Denis Arh
5bfbab6a4e
Implement namespace CRUD + various small fixes
...
Other fixes and improvements:
- add parseISODateWithErr and parseISODatePtrWithErr handlers for incoming data
- add service & repository errors
- cleanup old (unbound) attachment controllers from router
- fix system repository error prefix (auth => system)
2019-04-29 18:51:18 +02:00
Denis Arh
010a1351ea
Rename files & symbols
2019-04-29 18:51:18 +02:00
Tit Petric
2cca75cb1d
upd(codegen): check for func(w,r) in http handlers return
2019-04-26 22:11:28 +02:00
Denis Arh
4763ca863f
Better support for array get params in request parsers
...
We now support `&var=1&var=2` and (or!) `&var[]=1&var[]=2`.
2019-04-26 09:32:16 +02:00
Denis Arh
9e92b43923
Add ability to customize package name for typeset codegen
2019-04-03 17:46:39 +02:00
Tit Petric
a1aadeaa2f
upd(codegen): custom types, camel case structs
2019-04-03 14:38:13 +02:00
Denis Arh
78763c715d
Refactor permission resources
2019-03-16 23:56:45 +01:00