1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-30 08:06:40 +02:00
Commit Graph

3576 Commits

Author SHA1 Message Date
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
Niek den Breeje
9edc569e68
Add update rule to Makefile (#2315)
I realized that when writing `require go-micro.dev/v4 v4.1.0` in the
`go.mod` file, `go mod tidy` will install that exact version of
`go-micro.dev/v4`. As of right now, v4.1.0 is an outdated version, and
preferably we shouldn't be updating gomu's Go Modules template everytime
a new release is tagged, but still want gomu users to generate projects
using the latest Go Micro version.

In an attempt to solve this problem, I'm opting to add a new Makefile
rule for new projects generated by gomu, `update` that runs `go get -u`.
This aggressively updates any dependencies your Go Modules project may
have.  `go mod tidy` is then able to prune the `go.mod` and `go.sum`
files by removing the unnecessary checksums and transitive dependencies
(e.g. `// indirect`), that were added to by go get -u due to newer
semver available.

Put one and one together and you get two. In addition to adding an
`update` rule to the Makefile generated for new projects by gomu, I'm
also updating the proto and client comments printed when new projects
have been generated to promote the `update` rule.

References:

- https://stackoverflow.com/questions/67201708/go-update-all-modules
2021-10-19 21:12:42 +02: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
9f4770e7fd
fix generation (#2312) 2021-10-15 14:03:40 +01:00
Asim Aslam
e7dbda689e fix gomu 2021-10-14 08:09:21 +01:00
Asim Aslam
00f461141a fix examples go mod 2021-10-13 13:37:24 +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
7136c61dbd rename to go-micro.dev 2021-10-13 09:52:05 +01:00
Asim Aslam
a87f9a808c move to go-micro.dev 2021-10-13 09:44:24 +01:00
Asim Aslam
ca594b922c Merge branch 'master' of ssh://github.com/asim/go-micro 2021-10-13 09:42:31 +01:00
Asim Aslam
aa4a87ed9a move to v4 in protoc-gen-micro 2021-10-13 09:42:21 +01:00
justcy
690facdb5c
update model template (#2307) 2021-10-13 08:07:48 +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
jxlwqq
d9a6faeb7a
Add latest version (#2303) 2021-10-11 15:15:42 +01:00
Asim Aslam
4cb6168780
Update README.md 2021-10-11 09:21:06 +01:00
Asim Aslam
b8d7f87d17 remove file 2021-10-11 09:19:20 +01:00
Asim Aslam
b2e17a89e5 rename file 2021-10-11 09:19:01 +01:00
Asim Aslam
4ae2528cbe
add m3o services (#2301)
* add m3o services

* update readme
2021-10-11 09:18:28 +01:00
Asim Aslam
043a82bce2
Update README.md 2021-10-11 08:38:31 +01:00
Asim Aslam
99e0b182b7
Update README.md 2021-10-11 08:38:07 +01:00
Asim Aslam
ab1b10f13d
Update README.md 2021-10-11 08:37:38 +01:00
jxlwqq
86eabf4a4c
Use go install (#2300)
go get: installing executables with 'go get' in module mode is deprecated.
        To adjust and download dependencies of the current module, use 'go get -d'.
        To install using requirements of the current module, use 'go install'.
        To install ignoring the current module, use 'go install' with a version,
        like 'go install example.com/cmd@latest'.
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.
2021-10-11 06:32:13 +01:00
Qalifah
a99a1e9356
add MultiError type (#2297) 2021-10-06 17:55:14 +01:00
Asim Aslam
2ef523a7eb
Delete index.html 2021-10-02 13:13:22 +01:00
Asim Aslam
a1da40d9aa Delete CNAME 2021-10-01 20:23:38 +01:00
Defoo Li
a315fc2dda
Fix missing content type (#2289) 2021-09-30 12:15:09 +01:00
Johnson C
6dc25053ea
Errors (#2290)
* add errors.As

convert target err to *Error, return false if err don't match *Error

* update errors.As to (*Error, bool)

* fixing FromError panic issue when err is nil
2021-09-30 07:45:10 +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
Asim Aslam
8c39b1e120
Update index.html 2021-09-24 09:10:04 +01:00
Asim Aslam
12eff1cc60 go fmt 2021-09-24 09:08:39 +01:00
Asim Aslam
9deb715ebb
Update go.mod 2021-09-24 09:08:16 +01:00
Arsen
3b60db0dcd
logger helper: add "inject" method, to make a pair with "extract" (#2283) 2021-09-23 16:48:08 +01:00
Asim Aslam
af22cbb108
Update README.md 2021-09-22 14:48:20 +01:00
Asim Aslam
9d7131a512
Update README.md 2021-09-22 14:43:37 +01:00
Asim Aslam
bca9ab165d
Update README.md 2021-09-22 14:42:17 +01:00
Asim Aslam
d111f96993
Update README.md 2021-09-22 14:41:29 +01:00
Asim Aslam
2f223c276c
Update README.md 2021-09-22 14:32:06 +01:00
Asim Aslam
33acb4a956 update readme 2021-09-22 14:31:21 +01:00
Asim Aslam
b515785637 add services dir 2021-09-22 14:30:40 +01:00
Asim Aslam
3dcdcdad32
Update README.md 2021-09-22 13:37:07 +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
Asim Aslam
cb3db7dd83
Update options.go 2021-09-19 17:22:28 +01:00
simon
066ce5045b
Command Option add NewConfig,NewProfile func (#2276)
* Add grpc,memory,quic transport automatically discover

* Add grpc,memory,quic transport automatically discover

* Add jwt auth automatically discover

* Add jwt auth automatically discover

* Add config command option automatically discover

* Add AuthCall wrapper func

* Add NewConfig func

* Add NewProfile func
2021-09-19 17:21:55 +01:00
Asim Aslam
a65932ff82 Create CNAME 2021-09-19 15:10:47 +01:00