impl

package
v0.0.0-...-9c024a6 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientUdpSession

type ClientUdpSession struct {
	LastActive time.Time
	Tun        proto.GunService_TunDatagramClient
}

type GunServiceClientImpl

type GunServiceClientImpl struct {
	RemoteAddr  string
	LocalAddr   string
	ServerName  string
	Cleartext   bool
	UdpSessions *sync.Map

	ServiceName string
}

func (GunServiceClientImpl) Run

func (g GunServiceClientImpl) Run()

type GunServiceServerImpl

type GunServiceServerImpl struct {
	RemoteAddr  string
	LocalAddr   string
	CertPath    string
	KeyPath     string
	Cleartext   bool
	UdpSessions *sync.Map

	ServiceName string
}

func (GunServiceServerImpl) Run

func (g GunServiceServerImpl) Run()

func (GunServiceServerImpl) Tun

func (GunServiceServerImpl) TunDatagram

type ServerUdpSession

type ServerUdpSession struct {
	LastActive time.Time
	Tun        proto.GunService_TunDatagramServer
	Socket     net.PacketConn
}

Jump to

Keyboard shortcuts

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