component

package
v0.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(cfg *Config)

Initialize initializes the components manager.

func Shutdown

func Shutdown()

Shutdown shuts down components manager system. This method should be used only for testing purposes.

Types

type Component

type Component interface {
	Host() string
	ProcessStanza(stanza xmpp.Stanza, stm stream.C2S)
}

Component represents a generic component interface.

func Get

func Get(host string) Component

Get returns a specific component associated to host name.

func GetAll

func GetAll() []Component

GetAll returns all initialized components.

type Config

type Config struct {
}

Config contains all components configuration.

Jump to

Keyboard shortcuts

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