UNPKG

@taotiejs/server

Version:

Log collecting and querying based on pinojs and clickhouse

16 lines (14 loc) 351 B
const ch = require('./lib/clickhouse-client'); const receiver = require('./lib/log-receiver'); const httpServer = require('./lib/http-server'); module.exports = ({ db = {}, http = 80, udp = 514, interval = 5, dataSkippingIndices, } = {}) => { ch.connect(db); receiver(udp, ch, interval, dataSkippingIndices); httpServer(http, ch); };