This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2019-05-31 10:07:40 +02:00
|
|
|
package threema
|
|
|
|
|
2019-05-31 13:53:44 +02:00
|
|
|
import (
|
|
|
|
"dev.sum7.eu/genofire/thrempp/component"
|
|
|
|
"gosrc.io/xmpp"
|
|
|
|
)
|
2019-05-31 10:07:40 +02:00
|
|
|
|
|
|
|
type Threema struct {
|
|
|
|
component.Component
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewThreema(config map[string]interface{}) (component.Component, error) {
|
|
|
|
return &Threema{}, nil
|
|
|
|
}
|
|
|
|
|
2019-05-31 13:53:44 +02:00
|
|
|
func (t *Threema) Connect() (chan xmpp.Packet, error) {
|
|
|
|
c := make(chan xmpp.Packet)
|
|
|
|
return c, nil
|
|
|
|
}
|
|
|
|
|
2019-05-31 10:07:40 +02:00
|
|
|
func init() {
|
|
|
|
component.AddComponent("threema", NewThreema)
|
|
|
|
}
|