Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RelayConn ¶
type RelayConn interface {
// Transport transports data between the client and the remote server.
// The remoteLabel is the label of the remote server.
Transport(remoteLabel string) error
// GetRelayLabel returns the label of the Relay instance.
GetRelayLabel() string
GetStats() *Stats
Close() error
}
func NewRelayConn ¶
func NewRelayConn(relayName string, clientConn, remoteConn net.Conn, opts ...RelayConnOption) RelayConn
type RelayConnOption ¶
type RelayConnOption func(*relayConnImpl)
func WithHandshakeDuration ¶
func WithHandshakeDuration(duration time.Duration) RelayConnOption
Click to show internal directories.
Click to hide internal directories.