quic

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultBackoff is the default backoff used when dialing and serving
	// a connection.
	DefaultBackoff = wait.Backoff{
		Steps:    5,
		Duration: 100 * time.Millisecond,
		Factor:   2.0,
		Jitter:   0.1,
	}
)

Functions

func GetNetRoutes

func GetNetRoutes() ([]string, error)

func GetUserAndHostname

func GetUserAndHostname() string

Types

type Dialer

type Dialer struct {
	// contains filtered or unexported fields
}

func NewDialer

func NewDialer(ctx context.Context, conf *config.ProxyDialer) *Dialer

func (*Dialer) ProcessConnection

func (d *Dialer) ProcessConnection(ctx context.Context)

func (*Dialer) Run

func (d *Dialer) Run(ctx context.Context) error

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(conf *config.ProxyServer) (*Server, error)

func (*Server) Listen

func (s *Server) Listen(ctx context.Context) error

func (*Server) ProcessConnection

func (s *Server) ProcessConnection(ctx context.Context)

func (*Server) ShutdownGracefully

func (s *Server) ShutdownGracefully(ctx context.Context) error

func (*Server) StartHandshake

func (s *Server) StartHandshake(ctx context.Context, conn quic.Connection)

Jump to

Keyboard shortcuts

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