Documentation
¶
Overview ¶
Package mqttbroker contains the mqttBroker config node — the shared MQTT broker description mqttIn/mqttOut reference via their "broker" field (Node-RED mqtt-broker).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQTTBrokerNode ¶
MQTTBrokerNode is a config entity; its Execute is never invoked (no ports), existing only to satisfy the NodeExecutor contract.
func NewMQTTBrokerNode ¶
func NewMQTTBrokerNode(node nodestore.NodeInterface, config *nodebase.MQTTBrokerConfig) *MQTTBrokerNode
NewMQTTBrokerNode creates a new mqttBroker node
func (*MQTTBrokerNode) Execute ¶
func (n *MQTTBrokerNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute passes the payload through — unreachable in practice since an mqttBroker node has no inputs.
func (*MQTTBrokerNode) Validate ¶
func (n *MQTTBrokerNode) Validate() error
Validate checks the structural config: a broker address is required and inline cert/key must come as a pair. File readability is checked when the material is loaded at connect time.