plugin

package
v0.0.0-...-5599fc3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2016 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzerCaller

type AnalyzerCaller struct {
	Name       string
	Path       string
	Args       []string
	MimeFilter []string
	// contains filtered or unexported fields
}

AnalyzerCaller is a wrapper specifically intended to be utilized for wrapping Analyzer plugins.

func NewAnalyzerCaller

func NewAnalyzerCaller(c config.AnalyzerConfig) AnalyzerCaller

func (AnalyzerCaller) Analyze

func (a AnalyzerCaller) Analyze(fmeta string) (result string, err error)

Analyze sends a filepath location to an analyzer plugin for the plugin to perform analysis on.

type LoggerCaller

type LoggerCaller struct {
	Name string
	Path string
	Args []string
	// contains filtered or unexported fields
}

LoggerCaller is a wrapper specifically intended to be utilized for wrapping Logger plugins.

func NewLoggerCaller

func NewLoggerCaller(c config.LoggerConfig) LoggerCaller

func (LoggerCaller) Log

func (l LoggerCaller) Log(msg string) (result string, err error)

Log sends a json message to a logger plugin describing analysis that has been completed.

Jump to

Keyboard shortcuts

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