Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseURL (0.05 sec)

  1. internal/event/target/mqtt.go

    	QueueLimit           uint64         `json:"queueLimit"`
    }
    
    // Validate MQTTArgs fields
    func (m MQTTArgs) Validate() error {
    	if !m.Enable {
    		return nil
    	}
    	u, err := xnet.ParseURL(m.Broker.String())
    	if err != nil {
    		return err
    	}
    	switch u.Scheme {
    	case "ws", "wss", "tcp", "ssl", "tls", "tcps":
    	default:
    		return errors.New("unknown protocol in broker address")
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. internal/config/notify/parse.go

    		}
    		if !enabled {
    			continue
    		}
    
    		brokerEnv := target.EnvMQTTBroker
    		if k != config.Default {
    			brokerEnv = brokerEnv + config.Default + k
    		}
    
    		brokerURL, err := xnet.ParseURL(env.Get(brokerEnv, kv.Get(target.MqttBroker)))
    		if err != nil {
    			return nil, err
    		}
    
    		reconnectIntervalEnv := target.EnvMQTTReconnectInterval
    		if k != config.Default {
    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