Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
QueueSize int `yaml:"queue_size"`
}
Config represents Offline Storage module configuration.
type Offline ¶
type Offline struct {
// contains filtered or unexported fields
}
Offline represents an offline server stream module.
func New ¶
func New(config *Config, disco *xep0030.DiscoInfo, router *router.Router) (*Offline, chan<- chan bool)
New returns an offline server stream module.
func (*Offline) ArchiveMessage ¶
ArchiveMessage archives a new offline messages into the storage.
func (*Offline) DeliverOfflineMessages ¶
DeliverOfflineMessages delivers every archived offline messages to the peer deleting them from storage.
Click to show internal directories.
Click to hide internal directories.