Go to file
Vasiliy Tolstov 8955eeb18e bump go-micro and micro to v2.3.0 (#510)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-05 16:09:29 +03:00
go.mod bump go-micro and micro to v2.3.0 (#510) 2020-10-05 16:09:29 +03:00
go.sum bump go-micro and micro to v2.3.0 (#510) 2020-10-05 16:09:29 +03:00
README.md add version selector wrapper 2020-10-05 16:09:29 +03:00
version.go fix import path for v2 release (#457) 2020-10-05 16:09:29 +03:00

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),
)