Documentation
¶
Index ¶
- Constants
- Variables
- func NewCountValue() interface{}
- func NewCounter() runtime.NodeIFace
- func NewDelay() runtime.NodeIFace
- func NewGPIOState() interface{}
- func NewLamp() runtime.NodeIFace
- func NewMultioutPushListener() runtime.NodeIFace
- func NewPushEvent() interface{}
- func NewRouter() runtime.NodeIFace
- func NewSimplePushListener() runtime.NodeIFace
- func NewStatefulLamp() runtime.NodeIFace
- func NewTestResponse() interface{}
- func TestMain(m *testing.M)
- type CountValue
- type Counter
- func (cnt *Counter) CountUp(param runtime.FuncParams) runtime.MessageIFace
- func (cnt *Counter) Get(message runtime.MessageIFace) runtime.MessageIFace
- func (cnt *Counter) Init()
- func (cnt *Counter) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
- func (cnt *Counter) Set(message runtime.MessageIFace)
- func (cnt *Counter) SetMaxCount(maxCount int)
- type Delay
- type GPIOState
- type Interval
- type Lamp
- type LogicHandlerFunc
- type MultioutPushListener
- type PushEvent
- type PushListener
- func (pl *PushListener) Get(message runtime.MessageIFace) runtime.MessageIFace
- func (pl *PushListener) Init()
- func (pl *PushListener) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
- func (pl *PushListener) Set(message runtime.MessageIFace)
- func (pl *PushListener) SetActivationInterval(actIntInMS Interval)
- func (pl *PushListener) SetLogicHandler(handlerFunc LogicHandlerFunc)
- type Router
- type SimplePushListener
- type StatefulLamp
- type TestResponse
Constants ¶
View Source
const MAX_WORKERS = 100
View Source
const POOL_SIZE = 50
View Source
const WORKERS_TO_BE_READY = 50
Variables ¶
View Source
var CONFIG_PATH = "../../conf.json"
View Source
var DefaultLogger = utils.NewBasicLogger(utils.LoggerConfig{Level: utils.DebugLevel}, "")
Functions ¶
func NewCountValue ¶
func NewCountValue() interface{}
func NewCounter ¶
func NewGPIOState ¶
func NewGPIOState() interface{}
func NewMultioutPushListener ¶
func NewPushEvent ¶
func NewPushEvent() interface{}
func NewSimplePushListener ¶
func NewStatefulLamp ¶
func NewTestResponse ¶
func NewTestResponse() interface{}
Types ¶
type CountValue ¶
type CountValue struct {
Count int
}
type Counter ¶
func (*Counter) CountUp ¶
func (cnt *Counter) CountUp(param runtime.FuncParams) runtime.MessageIFace
func (*Counter) Get ¶
func (cnt *Counter) Get(message runtime.MessageIFace) runtime.MessageIFace
func (*Counter) Run ¶
func (cnt *Counter) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
func (*Counter) Set ¶
func (cnt *Counter) Set(message runtime.MessageIFace)
func (*Counter) SetMaxCount ¶
type Delay ¶
func (*Delay) Run ¶
func (d *Delay) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
type Lamp ¶
func (*Lamp) Get ¶
func (lmp *Lamp) Get(message runtime.MessageIFace) runtime.MessageIFace
func (*Lamp) Run ¶
func (lmp *Lamp) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
func (*Lamp) Set ¶
func (lmp *Lamp) Set(message runtime.MessageIFace)
func (*Lamp) SetOutputGPIO ¶
type LogicHandlerFunc ¶
type LogicHandlerFunc func(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
type MultioutPushListener ¶
type MultioutPushListener struct {
PushListener
}
func (*MultioutPushListener) CallLogic ¶
func (mopl *MultioutPushListener) CallLogic(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
func (*MultioutPushListener) Init ¶
func (mopl *MultioutPushListener) Init()
type PushListener ¶
func (*PushListener) Get ¶
func (pl *PushListener) Get(message runtime.MessageIFace) runtime.MessageIFace
func (*PushListener) Init ¶
func (pl *PushListener) Init()
func (*PushListener) Run ¶
func (pl *PushListener) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
func (*PushListener) Set ¶
func (pl *PushListener) Set(message runtime.MessageIFace)
func (*PushListener) SetActivationInterval ¶
func (pl *PushListener) SetActivationInterval(actIntInMS Interval)
func (*PushListener) SetLogicHandler ¶
func (pl *PushListener) SetLogicHandler(handlerFunc LogicHandlerFunc)
type Router ¶
func (*Router) Run ¶
func (rtr *Router) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
type SimplePushListener ¶
type SimplePushListener struct {
PushListener
}
func (*SimplePushListener) CallLogic ¶
func (spl *SimplePushListener) CallLogic(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
func (*SimplePushListener) Init ¶
func (spl *SimplePushListener) Init()
type StatefulLamp ¶
type StatefulLamp struct {
Lamp
}
func (*StatefulLamp) Run ¶
func (sflmp *StatefulLamp) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
type TestResponse ¶
type TestResponse struct {
WasSuccess bool
}
Click to show internal directories.
Click to hide internal directories.