Documentation ¶
Index ¶
- func CreateNetTUN(localAddresses []netip.Prefix, mtu int) (*netTun, error)
- func NewClient(conf *protocol.Protocol_Wireguard) point.WrapProxy
- type Batch
- type ChannelDevice
- func (p *ChannelDevice) BatchSize() int
- func (p *ChannelDevice) Close() error
- func (p *ChannelDevice) Events() <-chan wun.Event
- func (p *ChannelDevice) File() *os.File
- func (p *ChannelDevice) Inbound(b []byte) (int, error)
- func (p *ChannelDevice) MTU() (int, error)
- func (p *ChannelDevice) Name() (string, error)
- func (p *ChannelDevice) Outbound(b []byte) error
- func (p *ChannelDevice) Read(b [][]byte, size []int, offset int) (int, error)
- func (p *ChannelDevice) Write(b [][]byte, offset int) (int, error)
- type Endpoint
- type Wireguard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Batch ¶ added in v0.3.7
type Batch struct { net.PacketConn // contains filtered or unexported fields }
func NewIPv6Batch ¶ added in v0.3.7
func NewIPv6Batch(batchSize int, conn net.PacketConn) *Batch
type ChannelDevice ¶ added in v0.3.6
type ChannelDevice struct {
// contains filtered or unexported fields
}
func NewChannelDevice ¶ added in v0.3.6
func NewChannelDevice(ctx context.Context, mtu int) *ChannelDevice
func (*ChannelDevice) BatchSize ¶ added in v0.3.6
func (p *ChannelDevice) BatchSize() int
func (*ChannelDevice) Close ¶ added in v0.3.6
func (p *ChannelDevice) Close() error
func (*ChannelDevice) Events ¶ added in v0.3.6
func (p *ChannelDevice) Events() <-chan wun.Event
func (*ChannelDevice) File ¶ added in v0.3.6
func (p *ChannelDevice) File() *os.File
func (*ChannelDevice) Inbound ¶ added in v0.3.6
func (p *ChannelDevice) Inbound(b []byte) (int, error)
func (*ChannelDevice) MTU ¶ added in v0.3.6
func (p *ChannelDevice) MTU() (int, error)
func (*ChannelDevice) Name ¶ added in v0.3.6
func (p *ChannelDevice) Name() (string, error)
func (*ChannelDevice) Outbound ¶ added in v0.3.6
func (p *ChannelDevice) Outbound(b []byte) error
type Endpoint ¶ added in v0.3.4
func (Endpoint) DstToBytes ¶ added in v0.3.4
func (Endpoint) DstToString ¶ added in v0.3.4
func (Endpoint) SrcToString ¶ added in v0.3.4
type Wireguard ¶
type Wireguard struct { netapi.EmptyDispatch // contains filtered or unexported fields }
func (*Wireguard) PacketConn ¶
Click to show internal directories.
Click to hide internal directories.