component

package
v0.0.0-...-3fd2139 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: AGPL-3.0, AGPL-3.0-or-later Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddComponent

func AddComponent(name string, c Connect)

func Load

func Load(configs []Config)

Types

type Component

type Component interface {
	Connect() (chan stanza.Packet, error)
	Send(stanza.Packet)
}

type Config

type Config struct {
	Type       string
	Host       string
	Connection string
	Secret     string
	XMPPDebug  bool `toml:"xmpp_debug"`
	Special    map[string]interface{}
	// contains filtered or unexported fields
}

func (*Config) Start

func (c *Config) Start() error

type Connect

type Connect func(config map[string]interface{}) (Component, error)

Connect function with config to get DB connection interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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