outputemail

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: 4 Imported by: 0

Documentation

Overview

Output-plug: outputemail The plug's function take the event-data into the standard-output.

Index

Constants

View Source
const (
	ModuleName = "email"
)

Variables

This section is empty.

Functions

func InitHandler

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

Init outputemail Handler.

Types

type OutputConfig

type OutputConfig struct {
	utils.OutputConfig

	Server   string
	From     string
	Password string
	To       []string
	Cc       string
}

Define outputemail' config.

func (*OutputConfig) Event

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

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

func (*OutputConfig) Send

func (oc *OutputConfig) Send(event utils.LogEvent) error

Jump to

Keyboard shortcuts

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