wgint

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Overview

Package wgint provides somewhat shady access to wireguard-go internals that don't (yet) have public APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PeerLastHandshakeNano

func PeerLastHandshakeNano(peer *device.Peer) int64

PeerLastHandshakeNano returns the last handshake time in nanoseconds since the unix epoch.

func PeerRxBytes

func PeerRxBytes(peer *device.Peer) uint64

PeerRxBytes returns the number of bytes received from this peer.

func PeerTxBytes

func PeerTxBytes(peer *device.Peer) uint64

PeerTxBytes returns the number of bytes sent to this peer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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