transport

package
v0.0.0-...-1fb8944 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(transport Interface, logger *log.Logger, tags ...string) map[string]Interface

Types

type ContextDialer

type ContextDialer interface {
	Dialer
	DialContext(ctx context.Context, network, address string) (net.Conn, error)
}

type Dialer

type Dialer interface {
	Dial(network, address string) (net.Conn, error)
}

type Interface

type Interface interface {
	net.Listener
	ContextDialer
	net.PacketConn
	SetReadBuffer(int) error               // for QUIC
	SyscallConn() (syscall.RawConn, error) // for QUIC
}

func QUIC

func QUIC(transport Interface, tlsConfig *tls.Config) Interface

func System

func System(address string) (Interface, error)

func TLSWithInsecureUDP

func TLSWithInsecureUDP(transport Interface, config *tls.Config) Interface

func Trace

func Trace(transport Interface, logger TraceLogger) Interface

type TraceLogger

type TraceLogger interface {
	Printf(string, ...interface{})
}

Jump to

Keyboard shortcuts

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