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

Method Intercept

ent/client.go:1099–1101  ·  view source on GitHub ↗

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

(interceptors ...Interceptor)

Source from the content-addressed store, hash-verified

1097// Intercept adds a list of query interceptors to the interceptors stack.
1098// A call to `Intercept(f, g, h)` equals to `fsevent.Intercept(f(g(h())))`.
1099func (c *FsEventClient) Intercept(interceptors ...Interceptor) {
1100 c.inters.FsEvent = append(c.inters.FsEvent, interceptors...)
1101}
1102
1103// Create returns a builder for creating a FsEvent entity.
1104func (c *FsEventClient) Create() *FsEventCreate {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected