Movatterモバイル変換


[0]ホーム

URL:


wgint

package
v1.92.3Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:5Imported by:3

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typePeeradded inv1.62.0

type Peer struct {// contains filtered or unexported fields}

Peer is a wrapper around a wireguard-go device.Peer pointer.

funcPeerOfadded inv1.62.0

func PeerOf(p *device.Peer)Peer

PeerOf returns a Peer wrapper around a wireguard-go device.Peer.

func (Peer)HandshakeAttemptsadded inv1.62.0

func (pPeer) HandshakeAttempts()uint32

HandshakeAttempts returns the number of failed WireGuard handshake attemptsmade for the current handshake. It resets to zero before every new handshakeand after a successful handshake.

func (Peer)IsValidadded inv1.62.0

func (pPeer) IsValid()bool

func (Peer)LastHandshakeadded inv1.62.0

func (pPeer) LastHandshake()time.Time

LastHandshake returns the last handshake time.

If the handshake has never happened, it returns the zero value.

func (Peer)RxBytesadded inv1.62.0

func (pPeer) RxBytes()uint64

RxBytes returns the number of bytes received from this peer.

func (Peer)TxBytesadded inv1.62.0

func (pPeer) TxBytes()uint64

TxBytes returns the number of bytes sent to this peer.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp