Documentation
¶
Index ¶
- Constants
- func NewNetworkReceiver(brokerURL string, topic string, mq mqueue.MessageQueueIFace) runtime.NodeIFace
- func NewNetworkSender(brokerURL string, topic string, mq mqueue.MessageQueueIFace) runtime.NodeIFace
- type BasicNode
- func (bn *BasicNode) Get(message runtime.MessageIFace) runtime.MessageIFace
- func (bn *BasicNode) GetActInputCounter() *utils.LockedCounter
- func (bn *BasicNode) GetActOutputCounter() *utils.LockedCounter
- func (bn *BasicNode) GetID() globals.UID
- func (bn *BasicNode) GetIdAsString() string
- func (bn *BasicNode) GetInputPorts() []db.PortModel
- func (bn *BasicNode) GetLogger() utils.LoggerIFace
- func (bn *BasicNode) GetOutputPorts() []db.PortModel
- func (bn *BasicNode) GetParentFlow() *runtime.Flow
- func (bn *BasicNode) GetType() db.NodeType
- func (bn *BasicNode) Init()
- func (bn *BasicNode) IsBusy() bool
- func (bn *BasicNode) IsEndNode() bool
- func (bn *BasicNode) IsInited() bool
- func (bn *BasicNode) IsRef() bool
- func (bn *BasicNode) IsService() bool
- func (bn *BasicNode) IsStartNode() bool
- func (bn *BasicNode) IsSupervised() bool
- func (bn *BasicNode) MakeService()
- func (bn *BasicNode) Mount()
- func (bn *BasicNode) Run(*runtime.Runner, runtime.MessageIFace) runtime.MessageIFace
- func (bn *BasicNode) Set(message runtime.MessageIFace)
- func (bn *BasicNode) SetBusy(value bool)
- func (bn *BasicNode) SetID(id globals.UID)
- func (bn *BasicNode) SetInited()
- func (bn *BasicNode) SetLogger(logger utils.LoggerIFace)
- func (bn *BasicNode) SetParentFlow(flow *runtime.Flow)
- func (bn *BasicNode) SetSupervised(value bool)
- func (bn *BasicNode) SetType(nType db.NodeType)
- func (bn *BasicNode) Terminate()
- type BitFlag
- type CiprusScriptNode
- func (csn *CiprusScriptNode) GetPM() *ciprus_rt.PropertyManager
- func (csn *CiprusScriptNode) Init()
- func (csn *CiprusScriptNode) Run(runner *ciprus_rt.Runner, message ciprus_rt.MessageIFace) ciprus_rt.MessageIFace
- func (csn *CiprusScriptNode) SetConfPath(path string)
- func (csn *CiprusScriptNode) SetRTCommand(cmd string)
- func (csn *CiprusScriptNode) SetRTLogLevel(logLevel string)
- func (csn *CiprusScriptNode) SetSourcePath(sourcePath string)
- func (csn *CiprusScriptNode) Terminate()
- type FuncNode
- type Inputs
- type NetworkReceiver
- type NetworkSender
- type Outputs
Constants ¶
const RT_TYPE = "CIS"
Variables ¶
This section is empty.
Functions ¶
func NewNetworkReceiver ¶
func NewNetworkSender ¶
Types ¶
type BasicNode ¶
type BasicNode struct { Id globals.UID // Pos Position, in DB // Ports []int, in DB Inputs Outputs // contains filtered or unexported fields }
func (*BasicNode) Get ¶
func (bn *BasicNode) Get(message runtime.MessageIFace) runtime.MessageIFace
func (*BasicNode) GetActInputCounter ¶
func (bn *BasicNode) GetActInputCounter() *utils.LockedCounter
func (*BasicNode) GetActOutputCounter ¶
func (bn *BasicNode) GetActOutputCounter() *utils.LockedCounter
func (*BasicNode) GetIdAsString ¶
func (*BasicNode) GetInputPorts ¶
func (*BasicNode) GetLogger ¶
func (bn *BasicNode) GetLogger() utils.LoggerIFace
func (*BasicNode) GetOutputPorts ¶
func (*BasicNode) GetParentFlow ¶
GetParentFlow should be used to get the parent flow object
func (*BasicNode) IsStartNode ¶
func (*BasicNode) IsSupervised ¶
func (*BasicNode) MakeService ¶
func (bn *BasicNode) MakeService()
MakeService can be used to modify node so it can be used without passing valid message to it after that nil can be passed instead it should only be used in special cases to see an example check the network receiver node
func (*BasicNode) Run ¶
func (bn *BasicNode) Run(*runtime.Runner, runtime.MessageIFace) runtime.MessageIFace
func (*BasicNode) Set ¶
func (bn *BasicNode) Set(message runtime.MessageIFace)
func (*BasicNode) SetLogger ¶
func (bn *BasicNode) SetLogger(logger utils.LoggerIFace)
func (*BasicNode) SetParentFlow ¶
func (*BasicNode) SetSupervised ¶
type CiprusScriptNode ¶
type CiprusScriptNode struct { BasicNode // contains filtered or unexported fields }
func (*CiprusScriptNode) GetPM ¶
func (csn *CiprusScriptNode) GetPM() *ciprus_rt.PropertyManager
func (*CiprusScriptNode) Init ¶
func (csn *CiprusScriptNode) Init()
func (*CiprusScriptNode) Run ¶
func (csn *CiprusScriptNode) Run(runner *ciprus_rt.Runner, message ciprus_rt.MessageIFace) ciprus_rt.MessageIFace
func (*CiprusScriptNode) SetConfPath ¶
func (csn *CiprusScriptNode) SetConfPath(path string)
func (*CiprusScriptNode) SetRTCommand ¶
func (csn *CiprusScriptNode) SetRTCommand(cmd string)
func (*CiprusScriptNode) SetRTLogLevel ¶
func (csn *CiprusScriptNode) SetRTLogLevel(logLevel string)
func (*CiprusScriptNode) SetSourcePath ¶
func (csn *CiprusScriptNode) SetSourcePath(sourcePath string)
func (*CiprusScriptNode) Terminate ¶
func (csn *CiprusScriptNode) Terminate()
type FuncNode ¶
type FuncNode struct {
BasicNode
}
func (*FuncNode) Do ¶
func (fn *FuncNode) Do(input runtime.MessageIFace, queryResults []runtime.MessageIFace) ([]runtime.MessageIFace, []runtime.MessageIFace)
func (*FuncNode) Run ¶
func (fn *FuncNode) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
type Inputs ¶
type Inputs struct {
// contains filtered or unexported fields
}
func (*Inputs) AddPort ¶
AddPort should be used to create an input port for node in the Init function of it
func (*Inputs) GetPortByLabel ¶
GetPortByLabel returns an input port identified by its label
func (*Inputs) GetPorts ¶
GetPorts can used to get all the input ports Be aware that it returns the PortModels not the ports the id can be used to get the port object from the flow by accessing its registry object
func (*Inputs) RemovePort ¶
RemovePort can be used to remove an input port from node Usually it is not needed as it will be handled by the GC but in some special cases it can useful
type NetworkReceiver ¶
type NetworkReceiver struct { BasicNode // contains filtered or unexported fields }
func (*NetworkReceiver) Init ¶
func (nr *NetworkReceiver) Init()
func (*NetworkReceiver) Run ¶
func (nr *NetworkReceiver) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
func (*NetworkReceiver) SetRecvMessageType ¶
func (nr *NetworkReceiver) SetRecvMessageType(mType runtime.MessageType)
func (*NetworkReceiver) SetSendMessageType ¶
func (nr *NetworkReceiver) SetSendMessageType(mType runtime.MessageType)
type NetworkSender ¶
type NetworkSender struct { BasicNode // contains filtered or unexported fields }
func (*NetworkSender) Init ¶
func (ns *NetworkSender) Init()
func (*NetworkSender) Run ¶
func (ns *NetworkSender) Run(runner *runtime.Runner, message runtime.MessageIFace) runtime.MessageIFace
func (*NetworkSender) SetSendMessageType ¶
func (ns *NetworkSender) SetSendMessageType(mType runtime.MessageType)
type Outputs ¶
type Outputs struct {
// contains filtered or unexported fields
}
func (*Outputs) AddPort ¶
AddPort should be used to create an output port for node in the Init function of it
func (*Outputs) GetPortByLabel ¶
GetPortByLabel returns an output port identified by its label
func (*Outputs) GetPorts ¶
GetPorts can used to get all the output ports Be aware that it returns the PortModels not the ports the id can be used to get the port object from the flow by accessing its registry object
func (*Outputs) RemovePort ¶
RemovePort can be used to remove an output port from node Usually it is not needed as it will be handled by the GC but in some special cases it can useful