server

package
v2.0.4 Latest Latest
Warning

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

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

View Source
const (
	Command         = "backup"
	SnapshotCommand = "snapshot"
)

The commands the verbs answer

Variables

This section is empty.

Functions

This section is empty.

Types

type From

type From struct {
	// A person a chat app limits to some of its commands, who only reads
	Limited bool
	// Typed at this computer, in a session of the terminal app: where backups are restored, removed and repaired, which writes over what
	// every profile keeps
	Here bool
}

Who runs words of /backup or /snapshot

type Verbs

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

The words of /backup and /snapshot as the slash commands run them, answered in text a person reads

func Register

func Register(host *server.Server, cfg *config.Config, bk *backup.Backup) *Verbs

Serves the backups and hands back the words of /backup and /snapshot, which the slash commands run

func (*Verbs) Run

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

Runs the line of the command for who typed it: what it answered, or an error the person reads

Jump to

Keyboard shortcuts

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