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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asked

type Asked struct {
	// The list of the logs rather than the records of one
	List bool
	// Log named, the log of icebath when empty
	File string
	// Records asked for, the place's own count when zero
	Count int
	// The files the log turned over to are read too
	Older bool
	// Filter as the words give it: a level, a part, a session, a time and words
	Level, Component, Session, Since, Search string
}

What words of /logs ask for

func Ask

func Ask(line string) (Asked, error)

Reads the words of /logs; a usage error a person reads for words it does not take

type From

type From struct {
	// Settings of the session the words were typed in, of its profile
	Config *config.Config
	// Typed in the terminal app, on the computer icebath runs on, where every log of the profile and of the icebath folder is read
	Here bool
	// A person a chat app limits to some of its commands
	Limited bool
}

Who runs words of /logs

type Verbs

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

The words of /logs as the sessions and the chat apps run them, answered in text a person reads

func Register

func Register(host *server.Server, cfg *config.Config, lg *logs.Logs) *Verbs

Registers the service of the logs, and gives the words of /logs, which the slash commands run through

func (*Verbs) Run

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

Runs the words of /logs; what they answered, or an error the person reads. Read from elsewhere than the terminal app, the logs are read only as the settings let them be and by a person who may run every command there, only those inside the folder of the profile, and with every secret, email address and phone number masked

Jump to

Keyboard shortcuts

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