bchat

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 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 bchat mounts the bchat application's Go module (github.com/lightwebinc/bchat/module) in this engine: tm_bchat_<ws> for each workspace BCHAT_WORKSPACES names and ls_bchat for all of them, with its terms route on BCHAT_LISTEN (where history, export, chain and search are sold) and its rows journal, admission counter and payment ledger under BCHAT_STATE_DIR. The module reads the same BCHAT_ variables as the TypeScript module (bchat docs/host.md); this package only registers it and runs its background work (the terms route, the payment watch, the drops it waits to carry out and retention) for the life of the process.

ls_bchat is also a module.Replayer: the catch-up syncer repairs the tm_bchat_ topics, which GASP never carries, by the module's ordered replay from the peers (docs/catch-up.md).

A host that mounts it beside anytx names anytx's own topics with OVERLAY_ANYTX_TOPICS, leaving out every tm_bchat_ topic: module.Mount refuses two managers on one topic.

Index

Constants

View Source
const Name = bchatmod.Name

Name is the module name in OVERLAY_MODULES.

Variables

This section is empty.

Functions

func New

func New(h module.Host) (module.Module, error)

New builds the module from the environment and starts its terms route and background tick. The module is closed when the host ends the tick (the rows journal flushed, the run marked clean so the next start keeps the admission counter's epoch).

Types

This section is empty.

Jump to

Keyboard shortcuts

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