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
- type MUCRTBL
- func (m *MUCRTBL) AccountFeatures(_ context.Context) ([]string, error)
- func (m *MUCRTBL) Name() string
- func (m *MUCRTBL) ServerFeatures(_ context.Context) ([]string, error)
- func (m *MUCRTBL) Start(_ context.Context) error
- func (m *MUCRTBL) Stop(_ context.Context) error
- func (m *MUCRTBL) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)
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 ¶
AccountFeatures returns no additional account features.
func (*MUCRTBL) ServerFeatures ¶
ServerFeatures returns no additional server features.
func (*MUCRTBL) StreamFeature ¶
StreamFeature is not applicable for MUCRTBL.
Click to show internal directories.
Click to hide internal directories.