godplugin

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job interface {
	FullName() string
	ModuleName() string
	Name() string

	AutoDetectionRetry() int

	Panicked() bool

	Init() bool
	Check() bool
	PostCheck() bool

	Tick(clock int)

	Start()
	Stop()
}

Job is an interface that represents a job.

type Plugin

type Plugin struct {
	Option     *cli.Option
	ConfigPath multipath.MultiPath
	Out        io.Writer
	// contains filtered or unexported fields
}

Plugin represents go.d.plugin

func New

func New() *Plugin

New creates Plugin with default values.

func (*Plugin) RemoveFromQueue

func (p *Plugin) RemoveFromQueue(fullName string)

RemoveFromQueue removes job from the loop queue by full name.

func (*Plugin) Serve

func (p *Plugin) Serve()

Serve Serve

func (*Plugin) Setup

func (p *Plugin) Setup() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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