1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-03-23 20:32:32 +02:00
2021-11-11 14:03:34 +00:00
..
2021-11-11 14:03:34 +00:00
2021-11-11 14:03:34 +00:00
2020-12-26 15:32:45 +00:00
2021-10-12 12:55:53 +01: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),
)