module

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorObject

type ErrorObject struct {
	object.ErrorObject
	// contains filtered or unexported fields
}

func (*ErrorObject) ErrorLevel

func (obj *ErrorObject) ErrorLevel() string

func (*ErrorObject) From

func (obj *ErrorObject) From() Module

type Module

type Module interface {
	Start(*NotificationQueue, log.Logger) error
	Configure(*config.ModuleDefinition) error
	Process() error
	Stop() error

	StartSession() error
	StopSession() error

	Name() string
	State() byte
}

type NotificationQueue

type NotificationQueue struct {
	// contains filtered or unexported fields
}

func NewNotificationQueue

func NewNotificationQueue() *NotificationQueue

func (*NotificationQueue) Notifications

func (queue *NotificationQueue) Notifications() []*notification.Notification

func (*NotificationQueue) NotifyData

func (queue *NotificationQueue) NotifyData(origin string, format string, a ...interface{})

func (*NotificationQueue) NotifyError

func (queue *NotificationQueue) NotifyError(module Module, level string, format string, a ...interface{})

Jump to

Keyboard shortcuts

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