offline

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

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, stm stream.C2S) *Offline

New returns an offline server stream module.

func (*Offline) ArchiveMessage

func (o *Offline) ArchiveMessage(message *xml.Message)

ArchiveMessage archives a new offline messages into the storage.

func (*Offline) DeliverOfflineMessages

func (o *Offline) DeliverOfflineMessages()

DeliverOfflineMessages delivers every archived offline messages to the peer deleting them from storage.

func (*Offline) RegisterDisco added in v0.3.0

func (o *Offline) RegisterDisco(discoInfo *xep0030.DiscoInfo)

RegisterDisco registers disco entity features/items associated to offline module.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL