server

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 33 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 Register

func Register(host *server.Server, cfg *config.Config, providers *provider.Registry, credentials Credentials, apps Apps)

Types

type Apps

type Apps interface {
	// Calls each for every chat app of the profile of the settings, with what a person calls the app and whether the profile has it
	// turned on with all it needs to connect
	Apps(cfg *config.Config, each func(title string, set bool))
}

The chat apps of a profile: the host of the chat apps

type Credentials

type Credentials interface {
	// After the variable was saved over the value it held: copies of the old value in api key settings take the new one, the providers that
	// read it take it again, and what held back the accounts it is the key of on the old value is cleared
	Saved(cfg *config.Config, name, old, value string) error
	// After the variable was removed: the providers that read it leave it out until it is set again, and copies of its old value in api key
	// settings are removed. Whether a setting held a copy
	Removed(cfg *config.Config, name, old string) (bool, error)
}

What else changes when config set or unset writes a credential variable of the profile's .env: the credentials host

Jump to

Keyboard shortcuts

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