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

Method Intercept

ent/client.go:2323–2325  ·  view source on GitHub ↗

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

(interceptors ...Interceptor)

Source from the content-addressed store, hash-verified

2321// Intercept adds a list of query interceptors to the interceptors stack.
2322// A call to `Intercept(f, g, h)` equals to `share.Intercept(f(g(h())))`.
2323func (c *ShareClient) Intercept(interceptors ...Interceptor) {
2324 c.inters.Share = append(c.inters.Share, interceptors...)
2325}
2326
2327// Create returns a builder for creating a Share entity.
2328func (c *ShareClient) Create() *ShareCreate {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected