xmpp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2016 License: BSD-2-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Status_online         = ""
	Status_offline        = ""
	Status_away           = "away"
	Status_chat           = "chat"
	Status_do_not_disturb = "dnd"
	Status_extended_away  = "xa"

	Type_available    = ""
	Type_unavailable  = "unavailable"
	Type_subscribe    = "subscribe"
	Type_subscribed   = "subscribed"
	Type_unsubscribe  = "unsubscribe"
	Type_unsubscribed = "unsubscribed"
	Type_probe        = "probe"
	Type_error        = "error"

	ActionConnexion       = "action_xmpp_connexion"
	ActionDeconnexion     = "action_xmpp_deconnexion"
	ActionMainMethodEnded = "action_xmpp_main_method_ended"

	LogInfo  = "\t[XMPP INFO]\t"
	LogError = "\t[XMPP ERROR]\t"
	LogDebug = "\t[XMPP DEBUG]\t"
)
View Source
const (
	CommandAuthcode = "steamAuthCodeCommand"
)

Variables

View Source
var (
	Addr   = "127.0.0.1:5347"
	JidStr = ""
	Secret = ""

	PreferedJID = ""

	ChanPresence = make(chan string)
	ChanMessage  = make(chan string)
	ChanAction   = make(chan string)

	CurrentStatus = Status_offline

	Debug = true
)
View Source
var (
	ChanAuthCode = make(chan string)
)

Functions

func Disconnect

func Disconnect()

func Run

func Run()

func SendMessage

func SendMessage(from, message string)

func SendPresence

func SendPresence(status, tpye, message string)

func SendPresenceFrom

func SendPresenceFrom(status, tpye, from, message, nick string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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