Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewPostgreSQLTarget (0.17 sec)

  1. internal/event/target/postgresql.go

    	}
    
    	yes, err := target.isActive()
    	if err != nil {
    		return err
    	}
    	if !yes {
    		return store.ErrNotConnected
    	}
    
    	return nil
    }
    
    // NewPostgreSQLTarget - creates new PostgreSQL target.
    func NewPostgreSQLTarget(id string, args PostgreSQLArgs, loggerOnce logger.LogOnce) (*PostgreSQLTarget, error) {
    	params := []string{args.ConnectionString}
    	if args.ConnectionString == "" {
    		params = []string{}
    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/config/notify/parse.go

    		if err != nil {
    			return nil, err
    		}
    		for id, args := range postgresTargets {
    			if !args.Enable {
    				continue
    			}
    			t, err := target.NewPostgreSQLTarget(id, args, logOnceIf)
    			if err != nil {
    				return nil, err
    			}
    			targets = append(targets, t)
    		}
    	case config.NotifyRedisSubSys:
    		redisTargets, err := GetNotifyRedis(cfg[config.NotifyRedisSubSys])
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 47K bytes
    - Viewed (0)
Back to top