netapp

package
v0.2.40 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Transport         *transport.Transport
	HTTPHandler       map[string]http.HandlerFunc
	TunnelDeviceTable map[string]*tuntable.PeerTable
	TunnelTracker     TunnelTrackerFunc

	// For Android library
	Device tun.Device
}

func NewContext

func NewContext(IdleUDPTimeout time.Duration, xConfig *xconn.Config, EnableGRO bool) *Context

func (*Context) Clone

func (c *Context) Clone() *Context

func (*Context) Serve

func (tunnelContext *Context) Serve(ctx context.Context, srcURL, dstURL *url.URL) error

type TunnelConfig

type TunnelConfig struct {
	MTU               int
	HostName, DevName string
	Gateway           *netip.Addr
	LocalNet          netip.Prefix
}

func ParseTunnelConfig

func ParseTunnelConfig(addr *url.URL) (*TunnelConfig, error)

type TunnelTrackerFunc

type TunnelTrackerFunc func(SourceURL *url.URL, DestinationURLs []*url.URL) io.Closer

Jump to

Keyboard shortcuts

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