Documentation
¶
Index ¶
- func DialViaRelay(ctx context.Context, t *transport.Transport, relayAddr, targetNodeID string) (*quic.Stream, error)
- type Server
- type StreamConn
- func (c *StreamConn) Close() error
- func (c *StreamConn) LocalAddr() net.Addr
- func (c *StreamConn) Read(b []byte) (int, error)
- func (c *StreamConn) RemoteAddr() net.Addr
- func (c *StreamConn) SetDeadline(t time.Time) error
- func (c *StreamConn) SetReadDeadline(t time.Time) error
- func (c *StreamConn) SetWriteDeadline(t time.Time) error
- func (c *StreamConn) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server relays traffic between NATed peers that can't reach each other directly. It runs on nodes with public IPs.
type StreamConn ¶
StreamConn wraps a QUIC stream as a net.Conn for use with memberlist or other code expecting a standard connection interface.
func (*StreamConn) Close ¶
func (c *StreamConn) Close() error
func (*StreamConn) LocalAddr ¶
func (c *StreamConn) LocalAddr() net.Addr
func (*StreamConn) RemoteAddr ¶
func (c *StreamConn) RemoteAddr() net.Addr
func (*StreamConn) SetDeadline ¶
func (c *StreamConn) SetDeadline(t time.Time) error
func (*StreamConn) SetReadDeadline ¶
func (c *StreamConn) SetReadDeadline(t time.Time) error
func (*StreamConn) SetWriteDeadline ¶
func (c *StreamConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.