udpout

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package udpout contains the udpOut node implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPOutConfig

type UDPOutConfig struct {
	// Host is the target host (default 127.0.0.1); overridden by
	// message Metadata["ip"] when present.
	Host string `json:"host"`
	// Port is the target port; overridden by message
	// Metadata["port"] when present.
	Port int `json:"port"`
}

UDPOutConfig holds configuration for the udpOut node.

type UDPOutNode

type UDPOutNode struct {
	*nodebase.BaseNode
	// contains filtered or unexported fields
}

UDPOutNode sends the message Data as a UDP datagram to the configured host:port, or to the message's Metadata ip/port when present (e.g. answering a udpIn sender).

func NewUDPOutNode

func NewUDPOutNode(node nodestore.NodeInterface, config *UDPOutConfig) *UDPOutNode

NewUDPOutNode creates a new udpOut node

func (*UDPOutNode) Execute

Execute resolves the target address (metadata wins) and sends one datagram; the input passes through unchanged.

func (*UDPOutNode) Validate

func (n *UDPOutNode) Validate() error

Validate checks the udpOut node configuration

Jump to

Keyboard shortcuts

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