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

Method Intercept

ent/client.go:2188–2190  ·  view source on GitHub ↗

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

(interceptors ...Interceptor)

Source from the content-addressed store, hash-verified

2186// Intercept adds a list of query interceptors to the interceptors stack.
2187// A call to `Intercept(f, g, h)` equals to `setting.Intercept(f(g(h())))`.
2188func (c *SettingClient) Intercept(interceptors ...Interceptor) {
2189 c.inters.Setting = append(c.inters.Setting, interceptors...)
2190}
2191
2192// Create returns a builder for creating a Setting entity.
2193func (c *SettingClient) Create() *SettingCreate {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected