Asim Aslam
6cf2b02f0f
move cmd to util ( #2527 )
...
* move cmd to util
* go fmt
2022-07-11 14:37:34 +01:00
Johnson C
28298a30e4
feat: remove plugins and related docs ( #2521 )
...
* feat: redis implementation of cache
* Revert "feat: redis implementation of cache"
This reverts commit 4b3f25c1fc
.
* feat: remove plugins
2022-07-02 10:25:57 +01:00
Thomas Chandelle
87c96bc4d0
Correctly check error on redis command XTRIM ( #2518 )
...
Also:
- add comment about version requirement
- move minID to var for code readability
2022-06-30 18:24:27 +08:00
Abdul Hadi
9960cd1d36
typo siza #2429 ( #2515 )
2022-06-24 19:18:47 +01:00
Johnson C
7a6a2b6373
feat: redis implementation of cache ( #2513 )
...
* feat: redis implementation of cache
* Revert "feat: redis implementation of cache"
This reverts commit 4b3f25c1fc
.
* feat: redis implementation of cache
2022-06-21 20:05:00 +01:00
yulian
072547201c
remove unused variable in loop ( #2495 )
2022-05-03 11:06:13 +08:00
bosima
8293988499
fix: consume and publish blocked after rabbitmq reconnecting ( #2492 )
...
* Support direct generation of grpc method when package and service names of proto files are different.
* fix req.Interface() return nil.
* Get rid of dependence on 'Micro-Topic'
* Revert "Get rid of dependence on 'Micro-Topic'"
This reverts commit 3ff6944336
.
* Revert "fix req.Interface() return nil."
This reverts commit 90a1b34195
.
* Revert "Revert "fix req.Interface() return nil.""
This reverts commit e64737b7da
.
* Revert "Revert "Get rid of dependence on 'Micro-Topic'""
This reverts commit 141bb0a557
.
* fix: consume and publish blocked after reconnecting
Co-authored-by: maxinglun <maxinglun@zhijiaxing.net>
2022-04-28 17:55:06 +08:00
Wang
034ba9a0de
typo fix; ( #2480 )
2022-04-15 09:55:30 +08:00
bosima
1919048c8f
Support direct generation of grpc method ( #2474 )
...
* Support direct generation of grpc method when package and service names of proto files are different.
* fix req.Interface() return nil.
2022-04-10 22:12:39 +08:00
Wang
6dedee5d8c
Add header suppor for Kafka broker plugin; ( #2470 )
2022-04-04 19:54:19 +01:00
Muhammad Iqbal Alaydrus
73eda3346d
Add Wait option support for sync/etcd plugins ( #2459 )
...
* Add Wait support for sync/etcd plugins
* Use ErrLockTimeout if context deadline exceeded
2022-03-25 10:28:19 +08:00
baerwang
356448017f
style:arrays pre-allocation ( #2449 )
2022-03-14 14:03:14 +08:00
dependabot[bot]
d6a74c1a8e
Bump github.com/nats-io/nats-server/v2 in /plugins/events/natsjs ( #2447 )
...
Bumps [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server ) from 2.6.2 to 2.7.4.
- [Release notes](https://github.com/nats-io/nats-server/releases )
- [Changelog](https://github.com/nats-io/nats-server/blob/main/.goreleaser.yml )
- [Commits](https://github.com/nats-io/nats-server/compare/v2.6.2...v2.7.4 )
---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-server/v2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-14 12:02:12 +08:00
Willy Kloucek
e5a35d38f9
fix natsjs syntax error, remove TODOs and enable tests ( #2446 )
2022-03-11 16:03:35 +08:00
Willy Kloucek
a2f6fac852
add NATS JetStream events plugin ( #2433 )
...
* add NATS JetStream plugin
* add notes about de-duplication and inprogress call
* fix typo
2022-03-04 14:53:15 +00:00
AlkaidChen
4154ed6a80
add tls option for sync etcd plugin ( #2440 )
2022-02-24 17:07:14 +08:00
simon
5f2251cfad
Add Kafka asynchronous send support ( #2409 )
...
* Add Kafka asynchronous send support
* Add Kafka asynchronous send support
* Upgrade sarama to 1.30.1
* Example
2022-01-09 14:12:10 +00:00
isfk
415016c6e4
nats config plugin ( #2397 )
2021-12-28 11:27:36 +08:00
isfk
8e52761edb
fix context value nil ( #2391 )
2021-12-20 16:31:48 +08:00
Johnson C
37de747d19
[fix] nats deregister issue ( #2384 )
2021-12-10 19:32:21 +08:00
Johnson C
a40f6e8fae
[fix] fixing f.IsExported undefined issue ( #2382 )
...
IsExported needs go1.17, replace with PkgPath
2021-12-07 17:30:48 +08:00
Ak-Army
81244a41f1
Extend client mock with ability to test publish, and a few useful method like SetResponse and SetSubscriber ( #2375 )
...
Co-authored-by: Hunyadvári Péter <peter.hunyadvari@vcc.live>
2021-12-05 11:55:54 +00:00
Johnson C
1e4dd94b71
[fix] zookeeper registry delete event ( #2372 )
...
* [fix] #2358 zookeeper delete event
2021-12-01 16:26:31 +08:00
Johnson C
90b3e4af0b
[fix] ignore unexported field ( #2354 )
...
ignore unexported field when register endpoints
2021-11-18 17:07:00 +08:00
陈杨文
799b8d6a65
upgrade to go 1.17 ( #2346 )
2021-11-11 14:03:34 +00:00
Asim Aslam
335c4e54a1
Merge branch 'master' of ssh://github.com/asim/go-micro
2021-11-08 09:01:56 +00:00
Asim Aslam
e6d17257b0
add nats and redis events plugins
2021-11-08 08:59:14 +00:00
Johnson C
c5be9f560c
fix( #2333 ): etcd grpc marshal issue ( #2334 )
...
make protocodec compatible with legacy proto message type
2021-11-03 10:58:05 +08:00
无相
ed90a65783
fix broker nsq plugin nil pointer error ( #2329 )
...
Co-authored-by: longhaoteng <longhaoteng@kingsoft.com>
2021-11-01 08:47:22 +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
Johnson C
ed690ed838
fixing #2308 ( #2326 )
...
IPV6 too many colons in address
net.SplitHostPort need ipv6 address in [host]:port format
2021-10-28 17:03:48 +08:00
Johnson C
d2a51d05c4
[feature] stream CloseSend ( #2323 )
...
* support stream CloseSend
* move CloseSend into Closer
2021-10-26 15:07:08 +01:00
Johnson C
af3cfa0a4c
remove unnecessary dependencies between plugins
...
remove unnecessary dependencies between plugins
upgrade go-micro.dev/v4 to v4.2.1
2021-10-23 16:20:42 +08:00
Johnson C
f96b48dad9
1. use default memory registry in grpc plugins ( #2317 )
...
2. try fixing grpc plugin failed to get issue
use v4.0.0-v4.0.0-00010101000000-000000000000 instead of specific version
3. kafka panic on disconnect
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0x1266c50]
goroutine 31 [running]:
github.com/asim/go-micro/plugins/broker/kafka/v3.(*kBroker).Disconnect(0xc0002400c0)
C:/Workshop/Go/pkg/mod/github.com/asim/go-micro/plugins/broker/kafka/v3@v3.7.0/kafka.go:130 +0xd0
github.com/asim/go-micro/plugins/server/grpc/v3.(*grpcServer).Start.func2()
C:/Workshop/Go/pkg/mod/github.com/asim/go-micro/plugins/server/grpc/v3@v3.0.0-20210712061837-0532fd9de8ae/grpc.go:998 +0xc8d
created by github.com/asim/go-micro/plugins/server/grpc/v3.(*grpcServer).Start
C:/Workshop/Go/pkg/mod/github.com/asim/go-micro/plugins/server/grpc/v3@v3.0.0-20210712061837-0532fd9de8ae/grpc.go:917 +0xcaf
exit status 2
2021-10-22 22:30:28 +08:00
Johnson C
29fefbad4e
Plugins ( #2311 )
...
* release plugins
* add window plugins release bat script
Co-authored-by: Johnson C <johnson.cheng@scenestek.com>
2021-10-16 05:56:51 +01:00
Asim Aslam
8cad88edae
update go sums
2021-10-13 13:35:17 +01:00
Asim Aslam
62801c3d68
update
2021-10-13 13:31:23 +01:00
Asim Aslam
f63e46a7d1
use 4.1.0
2021-10-12 13:22:08 +01:00
Asim Aslam
1cd7cfaa6c
go-micro.dev/v4 ( #2305 )
2021-10-12 12:55:53 +01:00
Qiu Yu
4612baa7f8
zap plugin: allow injecting zap logger options ( #2287 )
...
Though some of the Zap logger option can be customized through
plugins/logger/zap.Options, this change allows go.uber.org/zap.Option be
be injected directly for deeper customization.
2021-09-29 07:12:16 +01:00
Johnson C
44ecd6a457
Hystrix filter ( #2286 )
...
* support hystrix filter
* filter function should return true of false
2021-09-28 11:23:04 +01:00
Arsen
916ed6b8ee
logger: caller's skip correction ( #2280 )
2021-09-22 09:01:03 +01:00
gregkv
b8fbe87e1f
Use context to log "panic recovered" errors in grpc-server plugin ( #2278 )
2021-09-20 10:50:13 +01:00
Branden Horiuchi
d78d35078c
Consul sync plugin ( #2267 )
...
* adding consul sync provider
* adding logging options
Co-authored-by: Branden Horiuchi <Branden.Horiuchi@blackline.com>
2021-09-13 19:08:05 +01:00
Johnson C
22409c8ff3
support hystrix filter ( #2265 )
2021-09-13 09:23:26 +01:00
binbin.zhang
6c3a5c161f
upgrade nacos sdk version ( #2264 )
...
Co-authored-by: binbin <binbin@didiglobal.com>
2021-09-12 22:16:46 +01:00
Niek den Breeje
77bf39f2cd
Fix client gRPC plugin ( #2245 )
...
The helloworld examples found in the `google.golang.org/grpc/examples`
package were imported multiple times as different versions, resulting in
package conflicts. By running `go mod tidy`, these conflicts are
resolved and the gRPC client plugin can now be imported again.
2021-09-03 14:16:56 +01:00
simon
a159598f36
Add grpc,memory,quic transport automatically discover ( #2237 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
2021-09-02 18:10:24 +01:00
Qiu Yu
c7195aae98
Grpc server injection ( #2208 )
...
* plugin: update grpc server readme
* plugin: refactor gprc server test
This is a no-op change to enable test logic reuse for different
combinations.
* plugin: grpc server test Init after New
* plugin: allow grpc.Server to be injected
2021-08-12 18:26:26 +01:00
Arsen
ffb0a2f896
grpc client: fix grpc code to micro http status conversion for the fallback case with empty Details ( #2206 )
2021-08-12 12:15:49 +01:00