Documentation ¶
Index ¶
- Constants
- type BlockList
- func (m *BlockList) AccountFeatures(_ context.Context) ([]string, error)
- func (m *BlockList) MatchesNamespace(namespace string, serverTarget bool) bool
- func (m *BlockList) Name() string
- func (m *BlockList) ProcessIQ(ctx context.Context, iq *stravaganza.IQ) error
- func (m *BlockList) ServerFeatures(_ context.Context) ([]string, error)
- func (m *BlockList) Start(_ context.Context) error
- func (m *BlockList) Stop(_ context.Context) error
- func (m *BlockList) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)
Constants ¶
View Source
const ( // ModuleName represents blocklist module name. ModuleName = "blocklist" // XEPNumber represents blocklist XEP number. XEPNumber = "0191" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockList ¶
type BlockList struct {
// contains filtered or unexported fields
}
BlockList represents blocklist (XEP-0191) module type.
func New ¶
func New( router router.Router, hosts *host.Hosts, resMng *c2s.ResourceManager, rep repository.Repository, hk *hook.Hooks, ) *BlockList
New returns a new initialized BlockList instance.
func (*BlockList) AccountFeatures ¶
AccountFeatures returns blocklist account disco features.
func (*BlockList) MatchesNamespace ¶
MatchesNamespace tells whether namespace matches blocklist module.
func (*BlockList) ServerFeatures ¶
ServerFeatures returns blocklist server disco features.
Click to show internal directories.
Click to hide internal directories.