entry

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 4 Imported by: 0 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

Overview

Package entry contains wire-level activity helpers shared by maild and its clients.

Index

Constants

View Source
const MaxRecent = 500

MaxRecent bounds an activity.recent request.

Variables

This section is empty.

Functions

func Dropped

func Dropped(n int64, at time.Time) api.ActivityEntry

Dropped: a client lost n entries behind its own buffer, as of at. Like a subscription's dropped entry it has seq 0 and names no account.

func DroppedForAccount

func DroppedForAccount(account *int64, n int64) api.ActivityEntry

func Line

func Line(e api.ActivityEntry, names Names) (source, text string)

Line writes an entry as a client's console shows it: its source (the account's name, "maild" for an entry of no account) and its text. Every word comes from this function or from names; the entry holds no text.

Types

type Names

type Names interface {
	Account(id int64) string
	Mailbox(id int64) string
}

Names gives a client's names for the IDs in an entry: the account's name and the mailbox's, as the client already shows them; "" when unknown.

Jump to

Keyboard shortcuts

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