tcpout

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 9 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 tcpout contains the tcpOut node implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPOutConfig

type TCPOutConfig struct {
	// Host is the target host (default 127.0.0.1) for non-reply mode.
	Host string `json:"host"`
	// Port is the target port for non-reply mode.
	Port int `json:"port"`
	// Reply writes back on the tcpIn session that produced the message
	// (looked up via Metadata ip/port) instead of dialing host:port.
	Reply bool `json:"reply"`
	// TLS names a tlsConfig node in the same workflow; non-reply mode
	// dials are upgraded to TLS with that material.
	TLS string `json:"tls"`
}

TCPOutConfig holds configuration for the tcpOut node.

type TCPOutNode

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

TCPOutNode writes the message Data over TCP — either by replying on the accepted connection that produced the message (reply mode) or by dialing a configured host:port (open-write-close).

func NewTCPOutNode

func NewTCPOutNode(node nodestore.NodeInterface, config *TCPOutConfig, host nodebase.NodeHost) *TCPOutNode

NewTCPOutNode creates a new tcpOut node

func (*TCPOutNode) Execute

Execute sends the payload's Data and returns the input unchanged.

func (*TCPOutNode) Validate

func (n *TCPOutNode) Validate() error

Validate checks the tcpOut node configuration

Jump to

Keyboard shortcuts

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