mucrtbl

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mucrtbl implements a MUC Real-Time Block List.

The module intercepts MUC-targeted presence and message stanzas before the MUC module processes them and drops stanzas from blocked JIDs or domains. An admin IQ interface (namespace urn:zerta:muc-rtbl:manage) allows adding, removing, and listing entries at runtime.

Index

Constants

View Source
const ModuleName = "muc_rtbl"

ModuleName is the registered module name.

Variables

This section is empty.

Functions

This section is empty.

Types

type MUCRTBL

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

MUCRTBL provides a real-time block list for MUC rooms.

func New

func New(
	rep repository.MUCRTBL,
	router globalRouter,
	h hosts,
	hk *hook.Hooks,
	logger kitlog.Logger,
) *MUCRTBL

New creates a new MUCRTBL module.

func (*MUCRTBL) AccountFeatures

func (m *MUCRTBL) AccountFeatures(_ context.Context) ([]string, error)

AccountFeatures returns no additional account features.

func (*MUCRTBL) Name

func (m *MUCRTBL) Name() string

Name returns the module name.

func (*MUCRTBL) ServerFeatures

func (m *MUCRTBL) ServerFeatures(_ context.Context) ([]string, error)

ServerFeatures returns no additional server features.

func (*MUCRTBL) Start

func (m *MUCRTBL) Start(_ context.Context) error

Start registers hook handlers.

func (*MUCRTBL) Stop

func (m *MUCRTBL) Stop(_ context.Context) error

Stop removes hook handlers.

func (*MUCRTBL) StreamFeature

func (m *MUCRTBL) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)

StreamFeature is not applicable for MUCRTBL.

Jump to

Keyboard shortcuts

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