activity

package
v0.83.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: BSD-3-Clause, AGPL-3.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package activity records that a principal used a reverse proxy service, so that activity accounting counts people and devices which reach services through the proxy but never touch the dashboard or the management API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// RecordUserLogin records a completed SSO sign-in to a proxied service.
	// Service users have no interactive login and are ignored.
	RecordUserLogin(ctx context.Context, accountID string, user *types.User) error
	// RecordPeerSeen records that a peer reached a private service over the
	// mesh, which is what lets its owner count as active. Peers activity
	// accounting excludes, and peers already seen recently, are ignored.
	RecordPeerSeen(ctx context.Context, accountID string, peer *peer.Peer) error
}

Manager records reverse proxy usage against the timestamps activity accounting reads. Both methods are best effort from the caller's point of view: a lost record is corrected by the next request, and no authorization decision reads them back.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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