udpin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 8 Imported by: 1 module, 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 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

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

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

Execute binds the UDP socket and starts the datagram read loop.

func (*UDPInNode) Stop

func (n *UDPInNode) Stop() error

Stop closes the UDP socket (idempotent).

func (*UDPInNode) Validate

func (n *UDPInNode) Validate() error

Validate checks the udpIn node configuration

Jump to

Keyboard shortcuts

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