Lukasz Raczylo
a7522e7d6c
fix: struct field alignment ( #2632 )
2023-04-26 02:16:34 +02:00
asim
6f8930926f
gofmt
2023-03-22 16:42:54 +00:00
leoujz
0a91ba7b5d
api gateway handing http request adds Content-Type application/x-www-form-urlencoded, and extract endpoints from path if no endpoint matched ( #2592 )
...
Co-authored-by: l <l@x>
2022-11-09 04:28:39 +01:00
Rene Jochum
065f9714e9
fix: easy lint fixes to api/ ( #2567 )
2022-10-01 10:50:11 +02:00
Rene Jochum
010b1d9f11
fix: linting issues ( #2566 )
2022-09-30 20:32:55 +02:00
David Brouwer
85c0b0b8eb
fix: some linting issues ( #2563 )
2022-09-30 16:27:07 +02:00
Mohamed MHAMDI
1db36357d5
feat(logger): add logger option to all micro components (override DefaultLogger) closes #2556 ( #2559 )
...
* feat(logger): add logger option to all components
* fix: refactor api/rpc.go
* fix: refactor api/stream.go
* fix: api/options.go comment
* fix(logger): do not use logger.Helper internally
* fix(logger): fix comments
* fix(logger): use level.Enabled method
* fix: rename mlogger to log
* fix: run go fmt
* fix: log level
* fix: factories
Co-authored-by: Mohamed MHAMDI <mmhamdi@hubside.com>
Co-authored-by: Davincible <david.brouwer.99@gmail.com>
2022-09-29 16:44:53 +02:00
Asim Aslam
63d1f9de4a
minor changes
2022-07-02 14:25:21 +01:00
Asim Aslam
b6b866c0b2
api package ( #2522 )
...
* api gateway
* add comment
2022-07-02 12:11:59 +01:00
Asim Aslam
0c2041e439
add events package ( #2341 )
...
* add events package
* update go version
2021-11-08 08:52:39 +00:00
Asim Aslam
1cd7cfaa6c
go-micro.dev/v4 ( #2305 )
2021-10-12 12:55:53 +01:00
Asim Aslam
d94936f6c9
v3 ( #2104 )
...
* v3
* revert plugins
* fixup some issues
2021-01-20 13:54:31 +00:00
Asim Aslam
a7c31a0d2b
refactor all the things
2020-12-29 15:49:26 +00:00
Dominic Wong
0327f30e3c
Fix regex detection. Fixes #1663 ( #1696 )
2020-06-12 10:42:52 +01:00
Vasiliy Tolstov
d44adafca5
api/router: avoid unneeded loops and fix path match ( #1594 )
...
* api/router: avoid unneeded loops and fix path match
* if match found in google api path syntax, not try pcre loop
* if path is not ending via $ sign, append it to pcre to avoid matching other strings like
/api/account/register can be matched to /api/account
* api: add tests and validations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-29 15:23:10 +03:00
Vasiliy Tolstov
f00fd7a49e
api/router: support pcre and google.api pattern matching ( #1549 )
...
* api/router: support pcre and google.api pattern matching
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-19 00:31:34 +03:00
Vasiliy Tolstov
62cedf64da
api/router/registry: extract path based parameters from url to req ( #1530 )
...
* api/router/registry: extract path based parameters from url to req
* api/handler/rpc: fix empty body request parsing
* bundle grpc-gateway util funcs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-15 17:50:51 +03:00
Asim Aslam
d03a02f2e4
fix import
2020-04-12 11:25:12 +01:00
Asim Aslam
962588b649
Strip MetadataKey global var
2020-04-12 11:16:08 +01:00
Vasiliy Tolstov
0a2363b49b
api minor improvements ( #1526 )
...
* api/handler/rpc: unblock all http methods and set Host meta
* api/router/static: add debug log
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-11 22:21:55 +03:00
Asim Aslam
e5268dd0a6
move reg util to own package ( #1523 )
...
* move reg util to own package
* fix test
* fix broken static router
2020-04-10 17:41:10 +01:00
Ben Toogood
27eb7db1c2
Add default resolver to api router
2020-04-09 10:34:21 +01:00
Ben Toogood
8ff86ae08b
Extract micro resolver
2020-04-08 16:21:53 +01:00
Asim Aslam
b2079669f7
Strip namespace from router
2020-04-08 15:39:01 +01:00
Asim Aslam
2c1d1afd71
Strip namespace from registry router
2020-04-08 15:38:02 +01:00
Vasiliy Tolstov
6aaad7d63f
api/router/static: allow to specify body dst ( #1486 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-07 15:38:27 +01:00
Vasiliy Tolstov
0241197c6a
api/handler/rpc: binary streaming support ( #1466 )
...
* api/handler/rpc: binary streaming support
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fixup
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix sec webscoekt protol
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-02 10:13:04 +01:00
Vasiliy Tolstov
7b7a859a03
api: use http request Clone ( #1458 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-01 01:50:37 +03:00
Vasiliy Tolstov
18061723bb
fix api metadata extract from context ( #1452 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-31 22:36:51 +03:00
Vasiliy Tolstov
3d7d5ce6b4
api: add static router and improve path parser in rpc handler ( #1437 )
...
* api: add static router and improve path parser in rpc handler
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* expose metadata context key to be able to get unmodified map keys
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* server/grpc: fix jsonpb codec for protobuf msg
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* api/handler/rpc: write 204 status code when rsp is nil
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* api/handler/rpc: add check for nil response for non javascript
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-30 09:04:59 +01:00
Asim Aslam
45ee5e9ad1
Move error for api validation to trace level ( #1432 )
...
* remove error on endpoint validation
* trace level
2020-03-27 14:01:47 +00:00
Vasiliy Tolstov
8100d26430
api/router/registry: use logger ( #1402 )
...
* api/router/registry: use logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* api/server/acme: use logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-24 20:45:11 +00:00
Vasiliy Tolstov
f23638c036
fix import paths for v2 release
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-01-30 14:44:40 +03:00
Asim Aslam
e0078bbcd5
Remove use of config/cmd in api
2019-12-30 17:29:20 +00:00
Asim Aslam
c350e19552
Move cmd => config/cmd
2019-06-21 13:36:11 +01:00
Asim Aslam
b42b6fa0fc
Further consolidate the libraries
2019-06-03 18:44:43 +01:00