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

Method Intercept

ent/client.go:1417–1419  ·  view source on GitHub ↗

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `metadata.Intercept(f(g(h())))`.

(interceptors ...Interceptor)

Source from the content-addressed store, hash-verified

1415// Intercept adds a list of query interceptors to the interceptors stack.
1416// A call to `Intercept(f, g, h)` equals to `metadata.Intercept(f(g(h())))`.
1417func (c *MetadataClient) Intercept(interceptors ...Interceptor) {
1418 c.inters.Metadata = append(c.inters.Metadata, interceptors...)
1419}
1420
1421// Create returns a builder for creating a Metadata entity.
1422func (c *MetadataClient) Create() *MetadataCreate {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected