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