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

Function NewClient

pkg/database/ent/client.go:61–65  ·  view source on GitHub ↗

NewClient creates a new client configured with the given options.

(opts ...Option)

Source from the content-addressed store, hash-verified

59
60// NewClient creates a new client configured with the given options.
61func NewClient(opts ...Option) *Client {
62 client := &Client{config: newConfig(opts...)}
63 client.init()
64 return client
65}
66
67func (c *Client) init() {
68 c.Schema = migrate.NewSchema(c.driver)

Callers 3

NewClientFunction · 0.92
NewClientFunction · 0.92
OpenFunction · 0.70

Calls 2

initMethod · 0.95
newConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…