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 ¶
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 ¶
func (n *TCPOutNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
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