gohangout-output-kafkago

command module
v0.0.0-...-4e59dfe Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: MIT Imports: 13 Imported by: 0

README

gohangout-input-kafkago

此包为 https://github.com/childe/gohangout 项目的 kafka outputs 插件。

特点

使用kafka-go 这个仓库来作为output

TODO
  • TLS配置项的支持
DONE

SASL已经支持

使用方法

gokafka_output.go 复制到 gohangout 主目录下面, 运行

go build -buildmode=plugin -o gokafka_output.so gokafka_output.go

gokafka_output.so 路径作为 outputs

gohangout 配置示例

所有参数字段名字都使用kafka-go原生的,所以和gohangout的kafka插件的配置名字有些不一样。主要是为了偷懒.

inputs:
    - Stdin:
        codec: plain

outputs:
    - Stdout:
        if:
            - '{{if .error}}y{{end}}'
    - '/Users/fiendhuang/program/my/gohangout/gokafka_output.so':
        Brokers:
            - '127.0.0.1:9092'
        Topic: 'test'
        StatsAddr: '127.0.0.1:12345'
        Compression: 'Gzip'

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