(cobra) add IXCobraConfig struct to pass cobra config around
This commit is contained in:
		@@ -109,10 +109,7 @@ namespace ix
 | 
			
		||||
        return val.asString();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    int ws_cobra_to_statsd_main(const std::string& appkey,
 | 
			
		||||
                                const std::string& endpoint,
 | 
			
		||||
                                const std::string& rolename,
 | 
			
		||||
                                const std::string& rolesecret,
 | 
			
		||||
    int ws_cobra_to_statsd_main(const ix::CobraConfig& config,
 | 
			
		||||
                                const std::string& channel,
 | 
			
		||||
                                const std::string& filter,
 | 
			
		||||
                                const std::string& host,
 | 
			
		||||
@@ -123,10 +120,10 @@ namespace ix
 | 
			
		||||
                                const ix::SocketTLSOptions& tlsOptions)
 | 
			
		||||
    {
 | 
			
		||||
        ix::CobraConnection conn;
 | 
			
		||||
        conn.configure(appkey,
 | 
			
		||||
                       endpoint,
 | 
			
		||||
                       rolename,
 | 
			
		||||
                       rolesecret,
 | 
			
		||||
        conn.configure(config.appkey,
 | 
			
		||||
                       config.endpoint,
 | 
			
		||||
                       config.rolename,
 | 
			
		||||
                       config.rolesecret,
 | 
			
		||||
                       ix::WebSocketPerMessageDeflateOptions(true),
 | 
			
		||||
                       tlsOptions);
 | 
			
		||||
        conn.connect();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user