rpcBehaviorPicker wraps a picker and adds the rpc-behavior metadata field into the child pick result's metadata.
| 118 | // rpcBehaviorPicker wraps a picker and adds the rpc-behavior metadata field |
| 119 | // into the child pick result's metadata. |
| 120 | type rpcBehaviorPicker struct { |
| 121 | childPicker balancer.Picker |
| 122 | rpcBehavior string |
| 123 | } |
| 124 | |
| 125 | // Pick appends the rpc-behavior metadata entry to the pick result of the child. |
| 126 | func (p *rpcBehaviorPicker) Pick(info balancer.PickInfo) (balancer.PickResult, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected