qtypes_plugin

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 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
	Cfg          *config.Config
	MyID         int
	Typ          string
	Pkg          string
	Name         string
	LogOnlyPlugs []string
	MsgCount     map[string]float64
	LocalCfg     map[string]string
}

func NewBase

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

func (*Base) CfgBool

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

func (*Base) CfgBoolOr

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

func (*Base) CfgInt

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

func (*Base) CfgIntOr

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

func (*Base) CfgString

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

func (*Base) CfgStringOr

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

func (*Base) GetCfgItems

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

func (*Base) GetInputs

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

func (*Base) Log

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

func (*Base) StartTicker

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

type Plugin

type Plugin struct {
	Base
	MyID    int
	Typ     string
	Pkg     string
	Version string
	Name    string
}

func NewNamedPlugin

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

Jump to

Keyboard shortcuts

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