1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/plugins/selector/label
2020-12-26 15:32:45 +00:00
..
go.mod add all the plugins 2020-12-26 15:32:45 +00:00
go.sum add all the plugins 2020-12-26 15:32:45 +00:00
label_test.go add all the plugins 2020-12-26 15:32:45 +00:00
label.go add all the plugins 2020-12-26 15:32:45 +00:00
options.go add all the plugins 2020-12-26 15:32:45 +00:00
README.md add all the plugins 2020-12-26 15:32:45 +00:00

Label Selector

The label selecotr is a a priority based label selector. Rather than just returning nodes with specific labels this selector orders the nodes based on a list of labels. If no labels match all the nodes are still returned. The priority based label selector is useful for such things as rudimentary AZ based routing where requests made to other services should remain in the same AZ.