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

Method Intercept

ent/client.go:2840–2842  ·  view source on GitHub ↗

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

(interceptors ...Interceptor)

Source from the content-addressed store, hash-verified

2838// Intercept adds a list of query interceptors to the interceptors stack.
2839// A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.
2840func (c *UserClient) Intercept(interceptors ...Interceptor) {
2841 c.inters.User = append(c.inters.User, interceptors...)
2842}
2843
2844// Create returns a builder for creating a User entity.
2845func (c *UserClient) Create() *UserCreate {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected