barrage-forwarder

command
v0.0.0-...-4cd40bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

README

barrage-forwarder

Configuring

barrage-forwarder is configured with a yaml file you specify:

barrage-forwarder config.yaml

Here's a sample, with comments in-line to describe the settings:

# The path of log file
log.path: 'barrage-forwarder.log'
# The list of source configurations
sources:
  - type: douyu
    roomids:
      - 196
      - 52004
# The list of output configurations
output:
  - type: file
    path: output.log
  - type: kafka
    brokers: 127.0.0.1:9092
    topic: test
  - type: elasticsearch
    bulkActions:  500
    bulkSize: 5000
    flushInterval: 600000
    urls:
      - http://127.0.0.1:9200
      - http://127.0.0.1:9210

Build

go build github.com/DreamedOfMe/barrage-kit/barrage-forwarder

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL