WithRestrictToProcess is mainly for testing purpose, forbidding connection to other processes
()
| 83 | |
| 84 | // WithRestrictToProcess is mainly for testing purpose, forbidding connection to other processes |
| 85 | func WithRestrictToProcess() BalancerOption { |
| 86 | return func(o *BalancerOptions) { |
| 87 | o.Filters = append(o.Filters, TargetPIDMatches) |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | // WithPriorityToProcess is mainly for testing purpopse, to prioritize connections to current process. |
| 92 | func WithPriorityToProcess() BalancerOption { |
no outgoing calls
no test coverage detected
searching dependent graphs…