mirror of
https://github.com/go-micro/go-micro.git
synced 2025-02-04 18:21:53 +02:00
327 B
327 B
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),
)