mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-12 08:23:58 +02:00
93ba8cd0df
* 1.fix plugins go get bug. 2.update all mode. 3.add tidy tools * continue fix pre version go get bug that unknown v3.5.1 |
||
---|---|---|
.. | ||
go.mod | ||
go.sum | ||
README.md | ||
version.go |
Version Wrapper
The version wrapper is a stateful client wrapper which gives you a ability to select only latest version services. That suitable for easy upgrade running services without downtime.
Usage
Pass in the wrapper when you create your service
wrapper := version.NewClientWrapper()
service := micro.NewService(
micro.Name("foo"),
micro.WrapClient(wrapper),
)