MCPcopy Create free account
hub / github.com/clouditor/clouditor / WithMaxOpenConns

Function WithMaxOpenConns

persistence/gorm/gorm.go:94–98  ·  view source on GitHub ↗

WithMaxOpenConns is an option to configure the maximum number of open connections

(max int)

Source from the content-addressed store, hash-verified

92
93// WithMaxOpenConns is an option to configure the maximum number of open connections
94func WithMaxOpenConns(max int) StorageOption {
95 return func(s *storage) {
96 s.maxConn = max
97 }
98}
99
100// WithPostgres is an option to configure Storage to use a Postgres DB
101func WithPostgres(host string, port uint16, user string, pw string, db string, sslmode string) StorageOption {

Callers 1

NewStorageFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected