Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WireGuard/wireguard-go
/ types & classes
Types & classes
136 in github.com/WireGuard/wireguard-go
⨍
Functions
712
◇
Types & classes
136
↓ 5 callers
TypeAlias
ChannelEndpoint
conn/bindtest/bindtest.go:26
↓ 3 callers
TypeAlias
Cq
conn/winrio/rio_windows.go:48
↓ 3 callers
TypeAlias
pipeAddress
ipc/namedpipe/namedpipe.go:35
↓ 2 callers
TypeAlias
deviceState
deviceState represents the state of a Device. There are three states: down, up, closed. Transitions: down -----+ ↑↓ ↓ up -> closed
device/device.go:101
↓ 1 callers
TypeAlias
BufferId
conn/winrio/rio_windows.go:52
↓ 1 callers
TypeAlias
Rq
conn/winrio/rio_windows.go:50
↓ 1 callers
Interface
batchWriter
conn/bind_std.go:222
↓ 1 callers
TypeAlias
handshakeState
device/noise-protocol.go:22
Struct
AllowedIPs
device/allowedips.go:207
Interface
Bind
A Bind listens on a port for both IPv6 and IPv4 UDP traffic. A Bind interface may also be a PeekLookAtSocketFd or BindSocketToInterface, depending on
conn/conn.go:34
Interface
BindSocketToInterface
BindSocketToInterface is implemented by Bind objects that support being tied to a single network interface. Used by wireguard-windows.
conn/conn.go:62
Struct
Buffer
conn/winrio/rio_windows.go:54
Struct
ChannelBind
conn/bindtest/bindtest.go:18
Struct
ChannelTUN
tun/tuntest/tuntest.go:82
Interface
CloseWriter
ipc/namedpipe/namedpipe_test.go:491
Struct
CookieChecker
device/cookie.go:18
Struct
CookieGenerator
device/cookie.go:30
Interface
Device
tun/tun.go:20
Struct
Device
device/device.go:20
Struct
DialConfig
DialConfig exposes various options for use in Dial and DialContext.
ipc/namedpipe/namedpipe.go:142
Struct
DummyBind
device/bind_test.go:19
Struct
DummyDatagram
device/bind_test.go:14
Struct
DummyEndpoint
device/endpoint_test.go:13
Interface
Endpoint
An Endpoint maintains the source/destination caching for a peer. dst: the remote address of a peer ("endpoint" in uapi terminology) src: the local
conn/conn.go:78
Struct
ErrUDPGSODisabled
conn/bind_std.go:328
TypeAlias
Event
tun/tun.go:12
Struct
Filter
A Filter rejects replayed messages by checking if message counter value is within a sliding window of previously received messages. The zero value for
replay/replay.go:24
Struct
Handshake
device/noise-protocol.go:211
Struct
IPCError
device/uapi.go:24
Struct
IndexTable
device/indextable.go:20
Struct
IndexTableEntry
device/indextable.go:14
Struct
KDFTest
device/kdf_test.go:15
Struct
Keypair
* Due to limitations in Go and /x/crypto there is currently * no way to ensure that key material is securely ereased in memory. * * Since this may
device/keypair.go:24
Struct
Keypairs
device/keypair.go:35
Struct
ListenConfig
ListenConfig contains configuration for the pipe listener.
ipc/namedpipe/namedpipe.go:384
Struct
Logger
A Logger provides logging for a Device. The functions are Printf-style functions. They must be safe for concurrent use. They do not require a trailing
device/logger.go:18
Struct
MessageCookieReply
device/noise-protocol.go:112
Struct
MessageInitiation
* Type is an 8-bit field, followed by 3 nul bytes, * by marshalling the messages in little-endian byteorder * we can treat these as a 32-bit unsigne
device/noise-protocol.go:85
Struct
MessageResponse
device/noise-protocol.go:95
Struct
MessageTransport
device/noise-protocol.go:105
Struct
NativeTun
tun/tun_linux.go:30
Struct
NativeTun
tun/tun_darwin.go:22
Struct
NativeTun
tun/tun_openbsd.go:30
Struct
NativeTun
tun/tun_windows.go:34
Struct
NativeTun
tun/tun_freebsd.go:70
TypeAlias
Net
tun/netstack/tun.go:53
TypeAlias
NoiseNonce
device/noise-types.go:24
TypeAlias
NoisePresharedKey
device/noise-types.go:23
TypeAlias
NoisePrivateKey
device/noise-types.go:22
TypeAlias
NoisePublicKey
device/noise-types.go:21
Interface
PeekLookAtSocketFd
PeekLookAtSocketFd is implemented by Bind objects that support having their file descriptor peeked at. Used by wireguard-android.
conn/conn.go:69
Struct
Peer
device/peer.go:18
Struct
PingAddr
tun/netstack/tun.go:292
Struct
PingConn
tun/netstack/tun.go:284
Struct
QueueHandshakeElement
device/receive.go:21
Struct
QueueInboundElement
device/receive.go:28
Struct
QueueInboundElementsContainer
device/receive.go:36
Struct
QueueOutboundElement
* Outbound flow * * 1. TUN queue * 2. Routing (sequential) * 3. Nonce assignment (sequential) * 4. Encryption (parallel) * 5. Transmission (sequ
device/send.go:47
Struct
QueueOutboundElementsContainer
device/send.go:55
Struct
RWCancel
rwcancel/rwcancel.go:20
Struct
RWCancel
rwcancel/rwcancel_stub.go:7
Struct
Ratelimiter
ratelimiter/ratelimiter.go:28
Struct
RatelimiterEntry
ratelimiter/ratelimiter.go:22
FuncType
ReceiveFunc
A ReceiveFunc receives at least one packet from the network and writes them into packets. On a successful read it returns the number of elements of si
conn/conn.go:28
Struct
Result
conn/winrio/rio_windows.go:60
TypeAlias
SendDirection
device/device_test.go:104
Struct
SlowNode
device/allowedips_rand_test.go:23
TypeAlias
SlowRouter
device/allowedips_rand_test.go:29
Struct
StdNetBind
StdNetBind implements Bind for all platforms. While Windows has its own Bind (see bind_windows.go), it may fall back to StdNetBind. TODO: Remove usage
conn/bind_std.go:32
Struct
StdNetEndpoint
conn/bind_std.go:76
Struct
Timer
A Timer manages time-based aspects of the WireGuard protocol. Timer roughly copies the interface of the Linux kernel's struct timer_list.
device/timers.go:21
TypeAlias
Timestamp
tai64n/tai64n.go:20
Struct
UAPIListener
ipc/uapi_linux.go:16
Struct
UAPIListener
ipc/uapi_bsd.go:19
Struct
UAPIListener
ipc/uapi_windows.go:24
Struct
WaitPool
device/pools.go:12
Struct
WinRingBind
WinRingBind uses Windows registered I/O for fast ring buffered networking.
conn/bind_windows.go:74
Struct
WinRingEndpoint
conn/bind_windows.go:89
Struct
acceptResponse
ipc/namedpipe/namedpipe.go:223
Struct
afWinRingBind
conn/bind_windows.go:65
Struct
args
tun/offload_linux_test.go:659
Struct
autodrainingInboundQueue
device/channels.go:74
Struct
autodrainingOutboundQueue
device/channels.go:106
Interface
batchReader
conn/bind_std.go:218
TypeAlias
block
replay/replay.go:9
TypeAlias
canCoalesce
canCoalesce represents the outcome of checking if two TCP packets are candidates for coalescing.
tun/offload_linux.go:268
Struct
chTun
tun/tuntest/tuntest.go:107
Interface
closeWriter
ipc/namedpipe/namedpipe_test.go:351
TypeAlias
coalesceResult
coalesceResult represents the result of attempting to coalesce two TCP packets.
tun/offload_linux.go:402
FuncType
controlFn
controlFn is the callback function signature from net.ListenConfig.Control. It is used to apply platform specific configuration to the socket prior to
conn/controlfns.go:23
Struct
deadlineHandler
ipc/namedpipe/file.go:62
Struct
eventNotificationCompletion
conn/winrio/rio_windows.go:74
Struct
fakeBindSized
device/device_test.go:422
Struct
fakeTUNDeviceSized
device/device_test.go:435
Struct
file
file implements Reader, Writer, and Closer on a Win32 handle without blocking in a syscall. It takes ownership of this handle and will close it if it
ipc/namedpipe/file.go:52
FuncType
getGSOFunc
func(control []byte) (int, error)
conn/bind_std.go:500
TypeAlias
groCandidateType
tun/offload_linux.go:741
TypeAlias
groResult
tun/offload_linux.go:518
Struct
handshakeQueue
A handshakeQueue is similar to an outboundQueue; see those docs.
device/channels.go:57
Struct
ifreqMtu
Iface requests with MTU
tun/tun_freebsd.go:47
next →
1–100 of 136, ranked by callers