WithMaxOpenConns is an option to configure the maximum number of open connections
(max int)
| 92 | |
| 93 | // WithMaxOpenConns is an option to configure the maximum number of open connections |
| 94 | func 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 |
| 101 | func WithPostgres(host string, port uint16, user string, pw string, db string, sslmode string) StorageOption { |