plugin

package
v0.0.0-...-2f567b6 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

you should define your plugin struct name of plugin file name.

func (*File) Notice

func (f *File) Notice(s string)

you should implement Plugin interface.

func (*File) SetPluginConfig

func (f *File) SetPluginConfig(cfg interface{})

type Plugin

type Plugin interface {
	Notice(s string)
	SetPluginConfig(cfg interface{})
}

func CreatePlugin

func CreatePlugin(typeName string, cfg interface{}) (*Plugin, bool)

type Smtp

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

you should define your plugin struct name of plugin file name.

func (*Smtp) Notice

func (smtp *Smtp) Notice(s string)

you should implement Plugin interface.

func (*Smtp) SetPluginConfig

func (smtp *Smtp) SetPluginConfig(cfg interface{})

type Stdout

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

you should define your plugin struct name of plugin file name.

func (*Stdout) Notice

func (so *Stdout) Notice(s string)

you should implement Plugin interface.

func (*Stdout) SetPluginConfig

func (so *Stdout) SetPluginConfig(cfg interface{})

type Syslog

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

you should define your plugin struct name of plugin file name.

func (*Syslog) Notice

func (log *Syslog) Notice(s string)

you should implement Plugin interface.

func (*Syslog) SetPluginConfig

func (log *Syslog) SetPluginConfig(cfg interface{})

Jump to

Keyboard shortcuts

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