diff options
Diffstat (limited to 'src/rhimportd/ctrlTelnet.go')
-rw-r--r-- | src/rhimportd/ctrlTelnet.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rhimportd/ctrlTelnet.go b/src/rhimportd/ctrlTelnet.go index b6093c9..f57fd7b 100644 --- a/src/rhimportd/ctrlTelnet.go +++ b/src/rhimportd/ctrlTelnet.go @@ -34,11 +34,11 @@ import ( "strings" ) -func telnetQuit(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DBChan) bool { +func telnetQuit(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DB) bool { return true } -func telnetHelp(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DBChan) bool { +func telnetHelp(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DB) bool { switch len(args) { case 2: switch args[1] { @@ -174,7 +174,7 @@ func telnetSetFilePolicy(c *telgo.Client, param *rhimport.FilePolicy, val string } } -func telnetSet(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DBChan) bool { +func telnetSet(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DB) bool { if len(args) != 3 { c.Sayln("wrong number of arguments") return false @@ -226,7 +226,7 @@ func telnetSet(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.D return false } -func telnetReset(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DBChan) bool { +func telnetReset(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DB) bool { if len(args) > 1 { c.Sayln("too many arguments") return false @@ -236,7 +236,7 @@ func telnetReset(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb return false } -func telnetShow(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DBChan) bool { +func telnetShow(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DB) bool { if len(args) > 1 { c.Sayln("too many arguments") return false @@ -275,7 +275,7 @@ func telnetProgressCallback(step int, stepName string, current, total float64, t return true } -func telnetRun(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DBChan) bool { +func telnetRun(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.DB) bool { if c.UserData == nil { c.Sayln("context is empty please set at least one option") return false @@ -325,7 +325,7 @@ func telnetRun(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.D return false } -func StartControlTelnet(addr string, conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport.SessionStoreChan) { +func StartControlTelnet(addr string, conf *rhimport.Config, db *rddb.DB, sessions *rhimport.SessionStore) { cmdlist := make(telgo.CmdList) cmdlist["quit"] = func(c *telgo.Client, args []string) bool { return telnetQuit(c, args, conf, db) } cmdlist["help"] = func(c *telgo.Client, args []string) bool { return telnetHelp(c, args, conf, db) } |