Documentation
¶
Overview ¶
Package udpin contains the udpIn node implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UDPInConfig ¶
type UDPInConfig struct {
// Port is the UDP port to listen on.
Port int `json:"port"`
}
UDPInConfig holds configuration for the udpIn node.
type UDPInNode ¶
UDPInNode receives UDP datagrams. Each datagram is emitted downstream as Data (string) with the sender's ip/port in Metadata.
func NewUDPInNode ¶
func NewUDPInNode(node nodestore.NodeInterface, config *UDPInConfig, host nodebase.NodeHost) *UDPInNode
NewUDPInNode creates a new udpIn node
func (*UDPInNode) Execute ¶
func (n *UDPInNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute binds the UDP socket and starts the datagram read loop.