plugin

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

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

Go to latest
Published: Apr 5, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package plugin register plugins here, the registry keep tracks of plugins to redirect the messages

Index

Constants

This section is empty.

Variables

View Source
var Hooks = map[string]Hook{}

Hooks contains a map of Hook

View Source
var Recipes = map[string]Recipe{}

Recipes contains a map of Recipe

Functions

func RegisterHook

func RegisterHook(h Hook)

RegisterHook Registers a Hook

func RegisterRecipe

func RegisterRecipe(r Recipe)

RegisterRecipe Registers a Recipe

Types

type Hook

type Hook interface {
	Register(*evbus.EventBus, *context.Context) // processor gets the workdir and the config file
}

Hook register it's events to the eventbus

type Recipe

type Recipe interface {
	Hook
}

Recipe is a special type of Hook

Directories

Path Synopsis
recipe

Jump to

Keyboard shortcuts

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