😶🌫️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) | |
| var folderToServe string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pika | |
| import logging | |
| class Producer: | |
| def __init__(self,host='localhost', exchanges=[], queues=[], conn_params=None): | |
| self.queueNames = [ x.get('queue') for queue in queues ] | |
| self.exchangeNames = [ x.get('exchange') for exchange in exchanges ] | |
| if conn_params: | |
| self.connection = pika.BlockingConnection(conn_params) |
NewerOlder