ext

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	POINT_INPUT_CONFIG_PARSER   = "input-config-parser"
	POINT_INPUT_HANDLER_FACTORY = "input-handler-factory"
)
View Source
const (
	INPUT_STATE_NOT_STARTED = iota
	INPUT_STATE_RUNNING
	INPUT_STATE_DONE
	INPUT_STATE_ERROR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseHandler

type BaseHandler struct {
	TypeName string
	State    uint8
	Err      error
}

func (*BaseHandler) GetError

func (b *BaseHandler) GetError() error

func (*BaseHandler) GetName

func (b *BaseHandler) GetName() string

func (*BaseHandler) GetState

func (b *BaseHandler) GetState() uint8

func (*BaseHandler) GetType

func (b *BaseHandler) GetType() string

func (*BaseHandler) ReadInput

func (b *BaseHandler) ReadInput(ch chan *entity.InputData)

type InputEntryParser

type InputEntryParser interface {
	lib.ExtensionPoint
	CreateInputEntriesFromData(config *entity.Config, name string, data map[interface{}]interface{}) (entries []entity.InputEntry, err error)
}

type InputHandler

type InputHandler interface {
	GetName() string
	GetType() string
	GetState() uint8
	GetError() error

	ReadInput(ch chan entity.InputData)
}

type InputHandlerFactory

type InputHandlerFactory interface {
	lib.ExtensionPoint
	NewInputHandler(entity.InputEntry) InputHandler
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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