Ir al contenido

Servicios

Modules

Owns broadcaster module settings, quotes, feed and personality state, and integration credentials.

En esta página
Esta página aún no está traducida, así que estás leyendo la versión en inglés.

Responsibilities

Dashboard writes go to the owner; Sesame reads projected settings. Gossip resolves integration credentials when needed. Module changes feed Projector; the presence of a module in code does not mean a channel enabled it.

Interfaces

The default RPC prefix is rpc.modules, including list, upsert, patch and patch-existing. Projection repair uses rpc.internal.projection.modules.get.

Dashboard upserts persist before returning; background writes may coalesce. A patch with a stale expected revision returns a conflict. patch-existing also requires the expected row ID and never creates a replacement. Committed changes invalidate local caches, and the internal projection RPC returns a secret-free view.

State and dependencies

Modules owns channel settings and integration credentials; Projector stores secret-free derived views.

Failure behavior

A stale expected revision produces a conflict. Background writes can remain pending after acceptance.

Code map

Source: app/db/modules/. Start at main.go, rpc/, repository/, and ent/schema/.

Validation

Run go test ./app/db/modules/... from the repository root.