NewDynamicResolver returns a CommandInfoResolver that uses the underlying cmdInfo cache to resolve the policies
()
| 2514 | // NewDynamicResolver returns a CommandInfoResolver |
| 2515 | // that uses the underlying cmdInfo cache to resolve the policies |
| 2516 | func (c *ClusterClient) NewDynamicResolver() *commandInfoResolver { |
| 2517 | return &commandInfoResolver{ |
| 2518 | resolveFunc: c.extractCommandInfo, |
| 2519 | } |
| 2520 | } |
| 2521 | |
| 2522 | func appendIfNotExist[T comparable](vals []T, newVal T) []T { |
| 2523 | for _, v := range vals { |
no outgoing calls