streaminput

package module
v0.0.0-...-7d04e33 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2017 License: Apache-2.0 Imports: 5 Imported by: 1

README

stream-input

a dbus Input plugin that can integrate with external system.

Usage

stream-input is an implementation of dbus Input interface. You only need to import the plugin.

import _ "github.com/dbus-plugin/stream-input"
Configurattion
  • cmd

Example:

cmd: ["tail", "-F', "/var/log/messages"]
A complete example
{
    plugins: [
        {
            name: "StreamInput"
            cmd: ["cat", "/var/log/mail.log"]
        }

        {
            name:   "MockOutput"
            blackhole: false
            match:  ["StreamInput", ]
        }
    ]
}

Documentation

Overview

Package streaminput provides a dbus Input plugin that can integrate with external system

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamInput

type StreamInput struct {
	// contains filtered or unexported fields
}

StreamInput is a dbus Input plugin that can integrate with external system.

func (*StreamInput) Ack

func (this *StreamInput) Ack(pack *engine.Packet) error

func (*StreamInput) End

func (this *StreamInput) End(r engine.InputRunner)

func (*StreamInput) Init

func (this *StreamInput) Init(config *conf.Conf)

func (*StreamInput) Run

func (*StreamInput) SampleConfig

func (this *StreamInput) SampleConfig() string

Jump to

Keyboard shortcuts

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