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

Function newConfig

pkg/database/ent/client.go:101–105  ·  view source on GitHub ↗

newConfig creates a new config for the client.

(opts ...Option)

Source from the content-addressed store, hash-verified

99
100// newConfig creates a new config for the client.
101func newConfig(opts ...Option) config {
102 cfg := config{log: log.Println, hooks: &hooks{}, inters: &inters{}}
103 cfg.options(opts...)
104 return cfg
105}
106
107// options applies the options on the config object.
108func (c *config) options(opts ...Option) {

Callers 3

NewClientFunction · 0.85
EvalContainerMethod · 0.85
EvalServiceMethod · 0.85

Calls 1

optionsMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…