Documentation ¶
Index ¶
- Variables
- func RegisterProviderType(name string, makeProvider MakeProviderFunc)
- type MakeProviderFunc
- type Message
- type Provider
- type ProviderConfig
- type Roster
- type RosterItem
- type Service
- func (service *Service) HTTPHandler() http.Handler
- func (service *Service) Receive(message *Message) error
- func (service *Service) RunAddressBookUpdater(ctx context.Context) error
- func (service *Service) RunXMPPComponent(ctx context.Context) error
- func (service *Service) SetRoster(ctx context.Context, userJID xmpp.Address, newRoster Roster) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRosterNotIntialized = errors.New("the roster for this user has not been initialized yet")
Functions ¶
func RegisterProviderType ¶
func RegisterProviderType(name string, makeProvider MakeProviderFunc)
Types ¶
type MakeProviderFunc ¶
type MakeProviderFunc func(*Service, ProviderConfig) (Provider, error)
type Provider ¶
func MakeProvider ¶
func MakeProvider(typeName string, service *Service, config ProviderConfig) (Provider, error)
type ProviderConfig ¶
type Roster ¶
type Roster map[xmpp.Address]RosterItem
type RosterItem ¶
func (RosterItem) Equal ¶
func (item RosterItem) Equal(other RosterItem) bool
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) HTTPHandler ¶
func (*Service) RunAddressBookUpdater ¶
func (*Service) RunXMPPComponent ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.