listusers

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 5 Imported by: ? modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(ctx context.Context, db bun.IDB) *run

Process lists every account of the base, the oldest first: for the server's admin, not for an account of ctx.

Types

type Row

type Row struct {
	Name      string    `json:"name"`
	Admin     bool      `json:"admin"`
	Plan      string    `json:"plan"`
	Disabled  bool      `json:"disabled"`
	CreatedAt time.Time `json:"created_at"`
	// LastActive is the latest use of a session or an API token the base still holds, zero when it holds none: an
	// expired session is purged, so a long-gone account has none. Exact to the minute (domain.SeenEvery).
	LastActive time.Time `json:"last_active,omitzero"`
	Notes      int       `json:"notes"`    // live notes, the trash left out
	Sessions   int       `json:"sessions"` // sessions not expired
	Tokens     int       `json:"tokens"`   // API, CLI and OAuth tokens not expired
}

Row is an account as the server's admin sees it.

Jump to

Keyboard shortcuts

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