offline

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: GPL-3.0 Imports: 6 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, disco *xep0030.DiscoInfo, shutdownCh <-chan struct{}) *Offline

New returns an offline server stream module.

func (*Offline) ArchiveMessage

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

ArchiveMessage archives a new offline messages into the storage.

func (*Offline) DeliverOfflineMessages

func (o *Offline) DeliverOfflineMessages(stm stream.C2S)

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

Jump to

Keyboard shortcuts

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