plugins

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2015 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugins = map[string]Plugin{}

map of registered plugins

Functions

func Add

func Add(name string, plugin Plugin)

Add takes a plugin name and Plugin function Add should be used in the plugins init() function

Types

type Plugin

type Plugin func() Registrator

Plugin returns a plugin registrator

type Registrator

type Registrator interface {
	Register() []victor.HandlerDocPair
}

Registrator is the interface that a plugin must implement.

func NewRPCPlugin added in v0.0.2

func NewRPCPlugin(name, path string) Registrator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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