asim
610c00859f
v5
2024-06-04 21:40:43 +01:00
Lukasz Raczylo
a7522e7d6c
fix: struct field alignment ( #2632 )
2023-04-26 02:16:34 +02:00
David Brouwer
a3980c2308
feat: add test framework & refactor RPC server ( #2579 )
...
Co-authored-by: Rene Jochum <rene@jochum.dev>
2022-10-20 13:00:50 +02:00
David Brouwer
85c0b0b8eb
fix: some linting issues ( #2563 )
2022-09-30 16:27:07 +02:00
Wang
d1806e2883
Fix codec/bytes ( #2466 )
...
* Update marshaler.go
Byes codec always return error "invalid message" now.
* Update go.mod
Update package name
* Update go.mod
2022-04-02 18:11:12 +01:00
Asim Aslam
0c2041e439
add events package ( #2341 )
...
* add events package
* update go version
2021-11-08 08:52:39 +00:00
Benjamin
5d5aee1f08
replace ioutil with io and os ( #2327 )
...
set the go version to 1.16 in pr.yml and tests.yml, so as to be consistent with the version in go.mod.
2021-10-30 19:24:40 +01:00
Asim Aslam
1cd7cfaa6c
go-micro.dev/v4 ( #2305 )
2021-10-12 12:55:53 +01:00
bacndcmc
c3107e6843
fix code proto return invalid message ( #2196 )
...
Co-authored-by: ben <norton0395@gmail.com>
2021-07-26 06:25:21 +01:00
Shubhendra Singh Chauhan
26b859c4f9
improve code quality ( #2128 )
...
* Fix inefficient string comparison
* Fix unnecessary calls to Printf
* Canonicalize header key
* Replace `t.Sub(time.Now())` with `time.Until`
* Remove unnecessary blank (_) identifier
* Remove unnecessary use of slice
* Remove unnecessary comparison with bool
2021-02-25 08:30:35 +00:00
Asim Aslam
d94936f6c9
v3 ( #2104 )
...
* v3
* revert plugins
* fixup some issues
2021-01-20 13:54:31 +00:00
Asim Aslam
c787fd0483
fix missing pointer
2020-04-14 17:13:38 +01:00
Asim Aslam
1134ea5ff3
make proto.Message compatible with raw json
2020-04-14 16:59:24 +01:00
Asim Aslam
9d0381306d
add a proto message without serialisation
2020-04-14 15:54:25 +01:00
Vasiliy Tolstov
1fbc056dd4
minimize allocations ( #1472 )
...
* server: minimize allocations on re-register
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* server: stop old instance before Init()
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* client/grpc: fix allocations in protobuf marshal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* codec/json: fix allocations in protobuf marshal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* remove stop from init
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* codec/grpc: expose MaxMessageSize
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* codec: use buffer pool
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* metadata: minimize reallocations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* util/wrapper: use metadata helper
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* registry/cache: move logs to debug level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* server: move logs to debug level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* server: cache service only when Advertise is ip addr
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* server: use metadata.Copy
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-08 10:50:19 +01:00
Vasiliy Tolstov
9e6db79860
regenerate all proto ( #1440 )
...
* regenerate all proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* regenerate from proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* regenerate from proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-30 21:58:32 +01:00
Vasiliy Tolstov
58598d0fe0
fixes for safe conversation and avoid panics ( #1213 )
...
* fixes for safe convertation
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix client publish panic
If broker connect returns error we dont check it status and use
it later to publish message, mostly this is unexpected because
broker connection failed and we cant use it.
Also proposed solution have benefit - we flag connection status
only when we have succeseful broker connection
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* api/handler/broker: fix possible broker publish panic
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-18 23:05:38 +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
6358b9277d
don't write anything if theres no data
2019-12-31 22:58:14 +00:00
Milos Gajdos
5865e89bed
Fixing dead code and go vet moaning
2019-12-05 16:10:49 +00:00
Astone
29fb58db39
improve code quality
2019-12-03 20:59:02 +08:00
Asim Aslam
36623bfe50
Improve stream processing
2019-08-25 19:30:22 +01:00
Asim Aslam
6128d18ee0
checkpoint fixing data race to process h2 and grpc requests
2019-08-24 20:12:04 +01:00
Asim Aslam
4b4ad68eb9
Change Publication to Event
2019-07-07 12:44:09 +01:00
Asim Aslam
46de3ae9a9
Fix text codec
2019-06-10 12:42:43 +01:00
magodo
748c20c979
use package level func for unmarshal
2019-06-09 11:55:36 +08:00
magodo
3573ac818f
unmarshal json with jsonpb
if accepter is pb
2019-06-09 11:50:50 +08:00
Zich Liew
1948e8a0d7
Update marshaler.go
...
Modify "Name()" to "String()" of proto.Marshaler
2019-06-01 16:14:06 +08:00
Asim Aslam
4035ab5c7b
Change go-log links
2019-05-31 00:38:05 +01:00
Asim Aslam
8090f9968d
Update headers to remove X- prefix
2019-01-24 10:11:02 +00:00
Asim Aslam
2cd2258731
For the legacy
2019-01-18 10:12:57 +00:00
Asim Aslam
9ce9977d21
Don't read unless we have b
2019-01-17 12:09:04 +00:00
Asim Aslam
784a89b488
Allow bytes.Frame to be set to sent just bytes
2019-01-16 15:27:57 +00:00
Asim Aslam
c1d0237370
Add client response
2019-01-14 21:30:43 +00:00
Asim Aslam
c17d0fcc0f
grpc request
2019-01-13 19:54:07 +00:00
Asim Aslam
e1bc240a14
Respond with error type
2019-01-13 12:15:35 +00:00
Asim Aslam
3043841cf5
Don't process nil
2019-01-10 22:14:32 +00:00
Asim Aslam
9adebfcf1e
rename method to endpoint
2019-01-10 21:25:31 +00:00
Asim Aslam
f853f88bcd
gofmt
2019-01-10 20:35:20 +00:00
Asim Aslam
c086c33bb3
remove codecs
2019-01-10 09:42:02 +00:00
Asim Aslam
6e0e4a684c
Further crufting
2019-01-09 19:28:13 +00:00
Asim Aslam
d004c9624b
Add router modifications
2019-01-09 16:20:57 +00:00
Asim Aslam
4cb41721f1
further codec changes
2019-01-08 15:38:25 +00:00
Asim Aslam
4adc31e62d
add bytes codec, still unused
2019-01-04 14:07:16 +00:00
Asim Aslam
ed580204a8
Add grpc codec
2019-01-02 12:55:06 +00:00
Asim Aslam
e2623d8ef5
Make json/protobuf codecs
2018-12-31 22:01:16 +00:00
Asim Aslam
48c068d88d
add codec package comments
2018-11-20 10:06:13 +00:00
Mikhail Grachev
4006d9f102
Add errors check
2018-11-13 11:56:21 +03:00
Asim Aslam
71d717a06d
strip doc.go files
2016-12-14 15:41:48 +00:00
Asim
0190b1ab3a
Don't unmarshal if result is nil
2016-06-30 16:45:30 +01:00