1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-29 18:04:17 +02:00
2021-01-20 21:01:10 +00:00
..
2021-01-20 21:01:10 +00:00
2021-01-20 21:01:10 +00:00
2020-12-26 15:32:45 +00:00
2021-01-20 21:01:10 +00:00

Round Robin Wrapper

The round robin wrapper is a stateful client wrapper which gives you a true round robin strategy for the selector

Usage

Pass in the wrapper when you create your service

wrapper := roundrobin.NewClientWrapper()

service := micro.NewService(
	micro.Name("foo"),
	micro.WrapClient(wrapper),
)