NAME
Convos::Core - TODO
SYNOPSIS
TODO
ATTRIBUTES
log
Holds a Mojo::Log object.
redis
Holds a Mojo::Redis object.
METHODS
control
$self->control($command, $cb);
Used to issue a control command.
start
Will fetch connection information from the database and try to connect to them.
add_connection
$self->add_connection({
channels => [ '#foo', '#bar', '...' ],
login => $str,
nick => $str,
server => $str, # irc_server[:port]
tls => $bool,
}, $callback);
Add a new connection to redis. Will create a new connection id and set all the keys in the %connection hash
update_connection
$self->update_connection({
channels => [ '#foo', '#bar', '...' ],
login => $str,
lookup => $str, # irc_server[:port]
nick => $str,
server => $str, # irc_server[:port]
tls => $bool,
}, $callback);
Update a connection's settings and reconnect.
delete_connection
$self->delete_connection({
login => $str,
server => $str,
}, $cb);
ctrl_stop
$self->ctrl_stop($login, $server);
Stop a connection by connection id.
ctrl_restart
$self->ctrl_restart($login, $server);
Restart a connection by connection id.
ctrl_start
Start a single connection by connection id.
login
$self->login({ login => $str, password => $str }, $callback);
Will call callback after authenticating the user. $callback
will receive either:
$callback->($self, $login); # success
$callback->($self, undef, $error); # on error
COPYRIGHT
See Convos.
AUTHOR
Jan Henning Thorsen
Marcus Ramberg