trpc.group/trpc-go/trpc-go@v1.0.3/naming/servicerouter/README.md (about) 1 # tRPC-Go Service Router 2 3 Service Router filters nodes between service discovery and load balance to choose a specific node. 4 5 ## Service Router Interface 6 ```go 7 type ServiceRouter interface { 8 Filter(serviceName string, nodes []*registry.Node, opt ...Option) ([]*registry.Node, error) 9 } 10 ``` 11 The custom implementation should refer to the implementation inside that project.