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.