transports

package
v0.0.0-...-5093999 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: LGPL-2.1 Imports: 6 Imported by: 0

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

func DEFAULT_TRANSPORTS() []static.Transport

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

Jump to

Keyboard shortcuts

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