1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-04-21 12:16:52 +02:00
kratos/selector/filter.go

11 lines
262 B
Go
Raw Normal View History

package selector
import "context"
// Filter is select filter.
type Filter func(context.Context, []Node) []Node
// NodeFilter is node filter.
// If it returns false, the node will be removed out from the balancer pick list
type NodeFilter func(node Node) bool