events

package
v1.98.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package events contains type used as eventbus topics in tailscaled.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoKeyAdvertisement

type DiscoKeyAdvertisement struct {
	Src netip.Addr // Src field is populated by the IP header of the packet, not from the payload itself.
	Key key.DiscoPublic
}

DiscoKeyAdvertisement is an event sent on the [eventbus.Bus] when a disco key has been received over TSMP.

Its publisher is [tstun.Wrapper]; its main subscriber is [controlclient.Direct], that injects the received key into the netmap as if it was a netmap update from control.

type PeerDiscoKeyUpdate

type PeerDiscoKeyUpdate DiscoKeyAdvertisement

PeerDiscoKeyUpdate is an event sent on the [eventbus.Bus] when [controlclient.Direct] deems that it cannot handle the key update.

Its publisher is [controlclient.Direct]; its main subscriber is [wgengine.userspaceengine], that injects the received key into its [magicsock.Conn] in order to set up the key directly.

Jump to

Keyboard shortcuts

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