MCPcopy
hub / github.com/crowdsecurity/crowdsec / options

Method options

pkg/database/ent/client.go:108–115  ·  view source on GitHub ↗

options applies the options on the config object.

(opts ...Option)

Source from the content-addressed store, hash-verified

106
107// options applies the options on the config object.
108func (c *config) options(opts ...Option) {
109 for _, opt := range opts {
110 opt(c)
111 }
112 if c.debug {
113 c.driver = dialect.Debug(c.driver, c.log)
114 }
115}
116
117// Debug enables debug logging on the ent.Driver.
118func Debug() Option {

Callers 1

newConfigFunction · 0.95

Calls 1

DebugMethod · 0.45

Tested by

no test coverage detected