Documentation ¶
Overview ¶
Package transports contatin implementations of static.Transport interface
Index ¶
Constants ¶
View Source
const TcpScheme = "tcp"
Exactly what the name implies
Variables ¶
This section is empty.
Functions ¶
func DEFAULT_TRANSPORTS ¶
Returns default slice of transports (contains all builtin realisations)
Types ¶
type TcpTransport ¶
type TcpTransport struct{}
Implements tcp yggdrasil transport Compatible with the same named transport in yggdrasil-go
func (TcpTransport) Connect ¶
func (t TcpTransport) Connect(ctx context.Context, uri url.URL, proxy *url.URL, key ed25519.PrivateKey) (static.ConnResult, error)
func (TcpTransport) GetScheme ¶
func (t TcpTransport) GetScheme() string
func (TcpTransport) Listen ¶
func (t TcpTransport) Listen(ctx context.Context, uri url.URL, key ed25519.PrivateKey) (static.TransportListener, error)
Click to show internal directories.
Click to hide internal directories.