dialer

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package dialer implements the transport of a cluster: the conns, relay sockets and relayed listeners towards the peers, tagged and accounted under the cluster's name, and the socket of a dialing listener, which reaches its peer through a dialer of its own, accounted as the listener.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conf *stnrv2.ClusterConfig, rt *runtime.Runtime, admit func(net.Addr) bool) (api.Dialer, error)

New creates the dialer of a cluster config; admit applies the cluster's filters to a peer.

func NewListener

func NewListener(conf *stnrv2.ListenerConfig, rt *runtime.Runtime, admit func(net.Addr) bool) (net.Listener, error)

NewListener returns the socket of a dialing listener: Accept dials the peer of conf.Connect, from the listener's address and port if set, through a dialer built from the listener config: plain, TLS or DTLS by the listener's protocol, admitting the peers admit admits, accounted as the listener. STDIN and FIFO listeners do not dial.

Types

This section is empty.

Jump to

Keyboard shortcuts

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