------------------------------------------------------------------------------
| 5200 | //------------------------------------------------------------------------------ |
| 5201 | |
| 5202 | type cmdsInfoCache struct { |
| 5203 | fn func(ctx context.Context) (map[string]*CommandInfo, error) |
| 5204 | |
| 5205 | once internal.Once |
| 5206 | refreshLock sync.RWMutex |
| 5207 | cmds map[string]*CommandInfo |
| 5208 | } |
| 5209 | |
| 5210 | func newCmdsInfoCache(fn func(ctx context.Context) (map[string]*CommandInfo, error)) *cmdsInfoCache { |
| 5211 | return &cmdsInfoCache{ |
nothing calls this directly
no outgoing calls
no test coverage detected