client

package
v0.0.0-...-8871cbf Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

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

func NewDestination

func NewDestination(fwd model.Forward, addr string, opt model.RouteOption, direct *DirectServer, root *certc.Cert, logger *slog.Logger) (*Destination, error)

func (*Destination) Run

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

func (*Destination) RunControl

func (d *Destination) RunControl(ctx context.Context, conn quic.Connection) error

func (*Destination) SetDirectAddrs

func (d *Destination) SetDirectAddrs(addrs []netip.AddrPort)

type DirectServer

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

func NewDirectServer

func NewDirectServer(transport *quic.Transport, logger *slog.Logger) (*DirectServer, error)

func (*DirectServer) Run

func (s *DirectServer) Run(ctx context.Context) error

type Source

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

func NewSource

func NewSource(fwd model.Forward, addr string, opt model.RouteOption, direct *DirectServer, root *certc.Cert, logger *slog.Logger) (*Source, error)

func (*Source) Run

func (s *Source) Run(ctx context.Context) error

func (*Source) RunControl

func (s *Source) RunControl(ctx context.Context, conn quic.Connection) error

func (*Source) SetDirectAddrs

func (s *Source) SetDirectAddrs(addrs []netip.AddrPort)

Jump to

Keyboard shortcuts

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