MCPcopy
hub / github.com/redis/go-redis / NewCommandInfoResolver

Function NewCommandInfoResolver

command_policy_resolver.go:166–170  ·  view source on GitHub ↗
(resolveFunc CommandInfoResolveFunc)

Source from the content-addressed store, hash-verified

164}
165
166func NewCommandInfoResolver(resolveFunc CommandInfoResolveFunc) *commandInfoResolver {
167 return &commandInfoResolver{
168 resolveFunc: resolveFunc,
169 }
170}
171
172func NewDefaultCommandPolicyResolver() *commandInfoResolver {
173 return NewCommandInfoResolver(func(ctx context.Context, cmd Cmder) *routing.CommandPolicy {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected