MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / options

Method options

app/controlplane/pkg/data/ent/client.go:145–152  ·  view source on GitHub ↗

options applies the options on the config object.

(opts ...Option)

Source from the content-addressed store, hash-verified

143
144// options applies the options on the config object.
145func (c *config) options(opts ...Option) {
146 for _, opt := range opts {
147 opt(c)
148 }
149 if c.debug {
150 c.driver = dialect.Debug(c.driver, c.log)
151 }
152}
153
154// Debug enables debug logging on the ent.Driver.
155func Debug() Option {

Callers 1

newConfigFunction · 0.95

Calls 1

DebugMethod · 0.45

Tested by

no test coverage detected