outputredis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Output-plug: outputredis The plug's function take the event-data into redis.

Index

Constants

View Source
const (
	ModuleName = "redis"
)

Variables

This section is empty.

Functions

func InitHandler

func InitHandler(confraw *utils.ConfigRaw) (retconf utils.TypeOutputConfig, err error)

Init outputredis Handler.

Types

type OutputConfig

type OutputConfig struct {
	utils.OutputConfig
	Key               string `json:"key"`
	Host              string `json:"host"`
	Password          string `json:"password"`
	DataType          string `json:"data_type"`
	Timeout           int    `json:"timeout"`
	ReconnectInterval int    `json:"reconnect_interval"`
	// contains filtered or unexported fields
}

Define outputredis' config.

func (*OutputConfig) Event

func (oc *OutputConfig) Event(event utils.LogEvent) (err error)

Input's event,and this is the main function of output.

Jump to

Keyboard shortcuts

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