Exemple #1
0
func init() {
	w := WebSubSystem{}

	app.AddFlags([]app.CliFlag{
		app.CliFlag{&w.addr, "webaddr", "0.0.0.0:12346", "net.Listen spec, to listen for json-api calls"},
	})

	msgsystem.RegisterSubSystem(&w)
}
Exemple #2
0
func init() {
	cat := CatSubSystem{}

	app.AddFlags([]app.CliFlag{
		app.CliFlag{&cat.catbind, "catbind", ":12345", "net.Listen spec, to listen for IRCCat msgs"},
		app.CliFlag{&cat.catfam, "catfamily", "tcp4", "net.Listen address family for IRCCat msgs"},
	})

	msgsystem.RegisterSubSystem(&cat)
}
Exemple #3
0
func init() {
	jabber := JabberSubSystem{}

	app.AddFlags([]app.CliFlag{
		app.CliFlag{&jabber.server, "jabberhost", "localhost:443", "Hostname of Jabber server, eg: talk.google.com:443"},
		app.CliFlag{&jabber.username, "jabberuser", "ircflu", "Username to authenticate with Jabber server"},
		app.CliFlag{&jabber.password, "jabberpassword", "", "Password to use to connect to Jabber server"},
		app.CliFlag{&jabber.notls, "jabbernotls", false, "If you don't want to connect with TLS"},
	})

	msgsystem.RegisterSubSystem(&jabber)
}
Exemple #4
0
func init() {
	irc := IrcSubSystem{}

	app.AddFlags([]app.CliFlag{
		app.CliFlag{&irc.irchost, "irchost", "", "Hostname of IRC server, eg: irc.example.org:6667"},
		app.CliFlag{&irc.ircnick, "ircnick", "ircflu", "Nickname to use for IRC"},
		app.CliFlag{&irc.ircpassword, "ircpassword", "", "Password to use to connect to IRC server"},
		app.CliFlag{&irc.ircchannel, "ircchannel", "#ircflutest", "Which channel to join"},
		app.CliFlag{&irc.ircssl, "ircssl", false, "Use SSL for IRC connection"},
	})

	msgsystem.RegisterSubSystem(&irc)
}