1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-17 17:44:30 +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

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