cabllbackers 설계 2
Rule에 대한 전반적인 구조
{
"inputList":[
{},
{}
],
"process":{},
"outputList":[
{},
{}
]
}
input 구조
[{
"type":"path",
"pattern":"/*"
},
{
"type":"header",
"header":"X-Callback-Token",
"pattern":"ABC"
},
{
"type":"cidr",
"pattern":"128.0.0.0/24"
}
]
process 구조
{
"type":"passthrough"
}
{
"type":"javascript",
"code":"function(arg){return 'hi';}"
}
output 구조
{
"type":"slack",
"url":"https://slack.com/ABCABC"
}
{
"type":"mqtt",
"topic":"",
"id":"",
"pw":""
}
{
"type":"http",
"method":"get",
"url":"callback.com"
}
etc
해당 부분은 설계에 대해서 구상만 해본 수준이므로, 언제나 수정이 가능함.