Query calls f(ctx, q).
(ctx context.Context, q ent.Query)
| 439 | |
| 440 | // Query calls f(ctx, q). |
| 441 | func (f StoragePolicyFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error) { |
| 442 | if q, ok := q.(*ent.StoragePolicyQuery); ok { |
| 443 | return f(ctx, q) |
| 444 | } |
| 445 | return nil, fmt.Errorf("unexpected query type %T. expect *ent.StoragePolicyQuery", q) |
| 446 | } |
| 447 | |
| 448 | // The TraverseStoragePolicy type is an adapter to allow the use of ordinary function as Traverser. |
| 449 | type TraverseStoragePolicy func(context.Context, *ent.StoragePolicyQuery) error |
nothing calls this directly
no outgoing calls
no test coverage detected