plugin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	On(event string, handler HandlerFunc)
	Docker() *dockerclient.Client
}

Context ...

type HandlerFunc

type HandlerFunc func(id uint64, payload []byte, created time.Time) error

HandlerFunc ...

type Plugin

type Plugin struct {
	Name        string
	Version     string
	Description string

	Run RunFunc
	// contains filtered or unexported fields
}

Plugin ...

func (*Plugin) Execute

func (p *Plugin) Execute() error

Execute ..

type RunFunc

type RunFunc func(ctx Context) error

RunFunc ...

Jump to

Keyboard shortcuts

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