MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Query

Method Query

ent/intercept/intercept.go:414–419  ·  view source on GitHub ↗

Query calls f(ctx, q).

(ctx context.Context, q ent.Query)

Source from the content-addressed store, hash-verified

412
413// Query calls f(ctx, q).
414func (f ShareFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error) {
415 if q, ok := q.(*ent.ShareQuery); ok {
416 return f(ctx, q)
417 }
418 return nil, fmt.Errorf("unexpected query type %T. expect *ent.ShareQuery", q)
419}
420
421// The TraverseShare type is an adapter to allow the use of ordinary function as Traverser.
422type TraverseShare func(context.Context, *ent.ShareQuery) error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected