Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func Open(name string, mtu uint32) (_ device.Device, err error) type TUN func (t *TUN) Close() error func (t *TUN) Name() string func (t *TUN) Read(packet []byte) (int, error) func (t *TUN) Write(packet []byte) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Open ¶ func Open(name string, mtu uint32) (_ device.Device, err error) Types ¶ type TUN ¶ type TUN struct { *iobased.Endpoint // contains filtered or unexported fields } func (*TUN) Close ¶ func (t *TUN) Close() error func (*TUN) Name ¶ func (t *TUN) Name() string func (*TUN) Read ¶ func (t *TUN) Read(packet []byte) (int, error) func (*TUN) Write ¶ func (t *TUN) Write(packet []byte) (int, error) Source Files ¶ View all Source files tun_wireguard.go tun_wireguard_unix.go Click to show internal directories. Click to hide internal directories.