use rabbitmq

This commit is contained in:
Yax 2018-01-27 16:31:08 +01:00
parent feb280ed8c
commit e0c9f335fc
9 changed files with 138 additions and 98 deletions

View file

@ -1,6 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# TODO move to JSON config
zmq = {'pub_port': 7701, 'sub_port':7702}

View file

@ -24,16 +24,16 @@ json_schema = """
"rss": {
"$ref": "#/definitions/RSS"
},
"zmq": {
"$ref": "#/definitions/Zmq"
"rabbitmq": {
"$ref": "#/definitions/Rabbitmq"
}
},
"required": [
"general",
"http",
"rabbitmq",
"rss",
"security",
"zmq"
"security"
],
"title": "stacosys"
},
@ -79,6 +79,43 @@ json_schema = """
],
"title": "http"
},
"Rabbitmq": {
"type": "object",
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"host": {
"type": "string"
},
"port": {
"type": "integer"
},
"username": {
"type": "string"
},
"password": {
"type": "string"
},
"vhost": {
"type": "string"
},
"exchange": {
"type": "string"
}
},
"required": [
"active",
"exchange",
"host",
"password",
"port",
"username",
"vhost"
],
"title": "rabbitmq"
},
"RSS": {
"type": "object",
"additionalProperties": false,
@ -116,27 +153,6 @@ json_schema = """
"secret"
],
"title": "security"
},
"Zmq": {
"type": "object",
"additionalProperties": false,
"properties": {
"host": {
"type": "string"
},
"pub_port": {
"type": "integer"
},
"sub_port": {
"type": "integer"
}
},
"required": [
"host",
"pub_port",
"sub_port"
],
"title": "zmq"
}
}
}