mirror of
https://github.com/go-kratos/kratos.git
synced 2025-02-05 13:15:11 +02:00
11 lines
262 B
Go
11 lines
262 B
Go
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
|