Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MaxOpenConnections (0.15 sec)

  1. internal/event/target/postgresql.go

    	Database           string    `json:"database"` // default: same as user
    	QueueDir           string    `json:"queueDir"`
    	QueueLimit         uint64    `json:"queueLimit"`
    	MaxOpenConnections int       `json:"maxOpenConnections"`
    }
    
    // Validate PostgreSQLArgs fields
    func (p PostgreSQLArgs) Validate() error {
    	if !p.Enable {
    		return nil
    	}
    	if p.Table == "" {
    		return fmt.Errorf("empty table name")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. internal/event/target/mysql.go

    	Password           string   `json:"password"`
    	Database           string   `json:"database"`
    	QueueDir           string   `json:"queueDir"`
    	QueueLimit         uint64   `json:"queueLimit"`
    	MaxOpenConnections int      `json:"maxOpenConnections"`
    }
    
    // Validate MySQLArgs fields
    func (m MySQLArgs) Validate() error {
    	if !m.Enable {
    		return nil
    	}
    
    	if m.Format != "" {
    		f := strings.ToLower(m.Format)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. internal/config/notify/parse.go

    			Table:              env.Get(tableEnv, kv.Get(target.MySQLTable)),
    			QueueDir:           env.Get(queueDirEnv, kv.Get(target.MySQLQueueDir)),
    			QueueLimit:         queueLimit,
    			MaxOpenConnections: maxOpenConnections,
    		}
    		if err = mysqlArgs.Validate(); err != nil {
    			return nil, err
    		}
    		mysqlTargets[k] = mysqlArgs
    	}
    	return mysqlTargets, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 47K bytes
    - Viewed (0)
  4. internal/config/notify/legacy.go

    		},
    		config.KV{
    			Key:   target.PostgresQueueLimit,
    			Value: strconv.Itoa(int(cfg.QueueLimit)),
    		},
    		config.KV{
    			Key:   target.PostgresMaxOpenConnections,
    			Value: strconv.Itoa(cfg.MaxOpenConnections),
    		},
    	}
    
    	return nil
    }
    
    // SetNotifyNSQ - helper for config migration from older config.
    func SetNotifyNSQ(s config.Config, nsqName string, cfg target.NSQArgs) error {
    	if !cfg.Enable {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 19 04:37:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top