Go to file
2021-02-10 20:30:20 +00:00
go.mod Update module ozonru/etcd to v3.4.7 2021-02-10 20:30:20 +00:00
go.sum update go-micro and fix client/selector usage 2020-10-05 16:09:29 +03:00
README.md add version selector wrapper 2020-10-05 16:09:29 +03:00
renovate.json Add renovate.json 2021-02-08 23:37:06 +00:00
version.go wrapper/select/version: fix panic 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),
)