server

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: MIT Imports: 16 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shown

func Shown(r update.Receipt) string

One update whole as a user reads it: what it was, its steps, the other processes, what it owes and what the user has to do

Types

type From

type From struct {
	// Profile of the session or window they were typed in
	Profile string
	// slash for a session, chat for a chat app, screen for the Update page
	By string
	// A person a chat app limits to some of its commands, who runs only the words that read
	Limited bool
}

Who runs words of /update

type Verbs

type Verbs struct {
	// contains filtered or unexported fields
}

The words of /update as the chat apps, the sessions and the Update page run them, answered in text a user reads

func Register

func Register(host *server.Server, cfg *config.Config, up *update.Updater) *Verbs

Serves the updates of this install, and gives the words of /update the slash command runs

func (*Verbs) Run

func (v *Verbs) Run(ctx context.Context, from From, line string) (string, error)

Run runs the line and returns its full answer, or an error the user reads. A chat app splits a long answer into several messages.

Jump to

Keyboard shortcuts

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