mq

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const POLL_INTERVAL = 10 * time.Millisecond

Variables

View Source
var CONFIG_PATH = "../../conf.json"

Functions

func CreateNetworkReceiverFlow

func CreateNetworkReceiverFlow(ctx *runtime.Context, mq mqueue.MessageQueueIFace) *runtime.Flow

func CreateNetworkSenderFlow

func CreateNetworkSenderFlow(ctx *runtime.Context, mq mqueue.MessageQueueIFace) *runtime.Flow

func NewGPIOState

func NewGPIOState() interface{}

func NewLamp

func NewLamp() runtime.NodeIFace

func NewNetworkPushListener

func NewNetworkPushListener() runtime.NodeIFace

func NewPushEvent

func NewPushEvent() interface{}

func NewSimplePushListener

func NewSimplePushListener() runtime.NodeIFace

Types

type GPIOState

type GPIOState struct {
	State bool
}

type Interval

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

type Lamp

type Lamp struct {
	nodes.BasicNode

	State bool
	// contains filtered or unexported fields
}

func (*Lamp) Get

func (lmp *Lamp) Get(message runtime.MessageIFace) runtime.MessageIFace

func (*Lamp) Init

func (lmp *Lamp) Init()

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

func (lmp *Lamp) SetOutputGPIO(gpioNum int)

type LogicHandlerFunc

type LogicHandlerFunc func(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace

type MockedMQ

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

func (*MockedMQ) Close

func (mmq *MockedMQ) Close()

func (*MockedMQ) Connect

func (mmq *MockedMQ) Connect(url string)

func (*MockedMQ) GetConfig added in v1.2.5

func (mmq *MockedMQ) GetConfig() mqueue.QueueConfig

func (*MockedMQ) Receive

func (mmq *MockedMQ) Receive(stopCond mqueue.StopCondFunc, recvCBFunc mqueue.RecvCallbackFunc)

func (*MockedMQ) Send

func (mmq *MockedMQ) Send(data []byte)

func (*MockedMQ) SetConfig added in v1.2.5

func (mmq *MockedMQ) SetConfig(config mqueue.QueueConfig)

func (*MockedMQ) UseTopic

func (mmq *MockedMQ) UseTopic(topic string)

type NetworkPushListener

type NetworkPushListener struct {
	PushListener
}

func (*NetworkPushListener) CallLogic

func (npl *NetworkPushListener) CallLogic(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace

func (*NetworkPushListener) Init

func (npl *NetworkPushListener) Init()

type PushEvent

type PushEvent struct {
	PushInter int32
}

type PushListener

type PushListener struct {
	nodes.BasicNode
	// contains filtered or unexported fields
}

func (*PushListener) Get

func (*PushListener) Init

func (pl *PushListener) Init()

func (*PushListener) Run

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 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()

Jump to

Keyboard shortcuts

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