qtypes_plugin

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 9 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	BaseVersion string
	Version     string
	QChan       qtypes_qchannel.QChan
	ErrChan     chan error
	Cfg         *config.Config
	MsgCount    map[string]float64
}

func NewBase

func NewBase(qChan qtypes_qchannel.QChan, cfg *config.Config) Base

type Plugin

type Plugin struct {
	Base
	MyID         int
	Typ          string
	Pkg          string
	Version      string
	Name         string
	LogOnlyPlugs []string
	LocalCfg     map[string]string
}

func NewNamedPlugin

func NewNamedPlugin(qChan qtypes_qchannel.QChan, cfg *config.Config, typ, pkg, name, version string) *Plugin

func NewPlugin added in v0.1.4

func NewPlugin(b Base, typ, pkg, name, version string) *Plugin

func (*Plugin) CfgBool added in v0.1.4

func (p *Plugin) CfgBool(path string) (bool, error)

func (*Plugin) CfgBoolOr added in v0.1.4

func (p *Plugin) CfgBoolOr(path string, alt bool) bool

func (*Plugin) CfgInt added in v0.1.4

func (p *Plugin) CfgInt(path string) (int, error)

func (*Plugin) CfgIntOr added in v0.1.4

func (p *Plugin) CfgIntOr(path string, alt int) int

func (*Plugin) CfgString added in v0.1.4

func (p *Plugin) CfgString(path string) (string, error)

func (*Plugin) CfgStringOr added in v0.1.4

func (p *Plugin) CfgStringOr(path, alt string) string

func (*Plugin) GetCfgItems added in v0.1.4

func (p *Plugin) GetCfgItems(key string) []string

func (*Plugin) GetInfo added in v0.1.4

func (p *Plugin) GetInfo() (typ, pkg, name string)

func (*Plugin) GetInputs added in v0.1.4

func (p *Plugin) GetInputs() (res []string)

func (*Plugin) GetLogOnlyPlugs added in v0.1.4

func (p *Plugin) GetLogOnlyPlugs() []string

func (*Plugin) Log added in v0.1.4

func (p *Plugin) Log(logLevel, msg string)

func (*Plugin) StartTicker added in v0.1.4

func (p *Plugin) StartTicker(name string, durMs int) qtypes_ticker.Ticker

Jump to

Keyboard shortcuts

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